|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk">
|
2 | 2 |
|
3 |
| - <PropertyGroup> |
4 |
| - <!--让多个不同的框架都能使用此工具--> |
5 |
| - <TargetFrameworks>net5.0;net45;netstandard1.0</TargetFrameworks> |
6 |
| - </PropertyGroup> |
7 |
| - |
8 |
| - <PropertyGroup> |
9 |
| - <!-- 程序集名不是将打包的 --> |
10 |
| - <PackageId>dotnetCampus.UsingMSBuildCopyOutputFileToFastDebug</PackageId> |
11 |
| - |
12 |
| - <!-- 没有包含输出到 NuGet 的 Lib 文件夹的内容,不要警告 --> |
13 |
| - <NoPackageAnalysis>true</NoPackageAnalysis> |
14 |
| - <!-- 不包含任何构建的输出文件,这只是一个打包项目而已 --> |
15 |
| - <IncludeBuildOutput>false</IncludeBuildOutput> |
16 |
| - |
17 |
| - <!-- 这是一个开发辅助的库 --> |
18 |
| - <DevelopmentDependency>true</DevelopmentDependency> |
19 |
| - |
20 |
| - </PropertyGroup> |
21 |
| - |
22 |
| - <ItemGroup> |
23 |
| - <!-- 仅仅只是设置设置项目构建顺序而已 --> |
24 |
| - <ProjectReference Include="..\UsingMSBuildCopyOutputFileToFastDebug\UsingMSBuildCopyOutputFileToFastDebug.csproj" Condition="'$(TargetFramework)' == 'net5.0'" ReferenceOutputAssembly="false" /> |
25 |
| - </ItemGroup> |
26 |
| - |
27 |
| - <PropertyGroup> |
28 |
| - <!-- 将实际执行的项目的输出作为工具 --> |
29 |
| - <UsingMSBuildCopyOutputFileToFastDebugOutputPath Condition="'$(Configuration)'=='Debug'">..\UsingMSBuildCopyOutputFileToFastDebug\bin\Debug\net5.0\</UsingMSBuildCopyOutputFileToFastDebugOutputPath> |
30 |
| - |
31 |
| - <UsingMSBuildCopyOutputFileToFastDebugOutputPath Condition="'$(Configuration)'!='Debug'">..\UsingMSBuildCopyOutputFileToFastDebug\bin\Release\net5.0\</UsingMSBuildCopyOutputFileToFastDebugOutputPath> |
32 |
| - </PropertyGroup> |
33 |
| - |
34 |
| - <Target Name="UsingMSBuildCopyOutputFileToFastDebugPackage" BeforeTargets="_GetPackageFiles"> |
35 |
| - <ItemGroup> |
36 |
| - <None Include="build\dotnetCampus.UsingMSBuildCopyOutputFileToFastDebug.targets" Pack="True" PackagePath="\build\$(PackageId).targets" /> |
37 |
| - <None Include="buildMultiTargeting\dotnetCampus.UsingMSBuildCopyOutputFileToFastDebug.targets" Pack="True" PackagePath="\buildMultiTargeting" /> |
38 |
| - <None Include="$(UsingMSBuildCopyOutputFileToFastDebugOutputPath)**" Pack="true" PackagePath="\tools"/> |
| 3 | + <PropertyGroup> |
| 4 | + <!--让多个不同的框架都能使用此工具--> |
| 5 | + <!--多打一排排,让不明真相的人感觉到开森。事实上,只需一个net5.0,甚至netstandard1.0即可。其他框架只是在凑数而已--> |
| 6 | + <TargetFrameworks>net5.0;net45;netstandard1.0;net6.0;net7.0;net8.0;net9.0</TargetFrameworks> |
| 7 | + </PropertyGroup> |
| 8 | + |
| 9 | + <PropertyGroup> |
| 10 | + <!-- 程序集名不是将打包的 --> |
| 11 | + <PackageId>dotnetCampus.UsingMSBuildCopyOutputFileToFastDebug</PackageId> |
| 12 | + |
| 13 | + <!-- 没有包含输出到 NuGet 的 Lib 文件夹的内容,不要警告 --> |
| 14 | + <NoPackageAnalysis>true</NoPackageAnalysis> |
| 15 | + <!-- 不包含任何构建的输出文件,这只是一个打包项目而已 --> |
| 16 | + <IncludeBuildOutput>false</IncludeBuildOutput> |
| 17 | + |
| 18 | + <!-- 这是一个开发辅助的库 --> |
| 19 | + <DevelopmentDependency>true</DevelopmentDependency> |
| 20 | + |
| 21 | + </PropertyGroup> |
| 22 | + |
| 23 | + <ItemGroup> |
| 24 | + <!-- 仅仅只是设置设置项目构建顺序而已 --> |
| 25 | + <ProjectReference Include="..\UsingMSBuildCopyOutputFileToFastDebug\UsingMSBuildCopyOutputFileToFastDebug.csproj" Condition="'$(TargetFramework)' == 'net5.0'" ReferenceOutputAssembly="false" /> |
| 26 | + </ItemGroup> |
| 27 | + |
| 28 | + <PropertyGroup> |
| 29 | + <!-- 将实际执行的项目的输出作为工具 --> |
| 30 | + <UsingMSBuildCopyOutputFileToFastDebugOutputPath Condition="'$(Configuration)'=='Debug'">..\UsingMSBuildCopyOutputFileToFastDebug\bin\Debug\net5.0\</UsingMSBuildCopyOutputFileToFastDebugOutputPath> |
| 31 | + |
| 32 | + <UsingMSBuildCopyOutputFileToFastDebugOutputPath Condition="'$(Configuration)'!='Debug'">..\UsingMSBuildCopyOutputFileToFastDebug\bin\Release\net5.0\</UsingMSBuildCopyOutputFileToFastDebugOutputPath> |
| 33 | + </PropertyGroup> |
| 34 | + |
| 35 | + <Target Name="UsingMSBuildCopyOutputFileToFastDebugPackage" BeforeTargets="_GetPackageFiles"> |
| 36 | + <ItemGroup> |
| 37 | + <None Include="build\dotnetCampus.UsingMSBuildCopyOutputFileToFastDebug.targets" Pack="True" PackagePath="\build\$(PackageId).targets" /> |
| 38 | + <None Include="buildMultiTargeting\dotnetCampus.UsingMSBuildCopyOutputFileToFastDebug.targets" Pack="True" PackagePath="\buildMultiTargeting" /> |
| 39 | + <None Include="$(UsingMSBuildCopyOutputFileToFastDebugOutputPath)**" Pack="true" PackagePath="\tools"/> |
39 | 40 | </ItemGroup>
|
40 |
| - </Target> |
| 41 | + </Target> |
41 | 42 |
|
42 | 43 | </Project>
|
0 commit comments