11<Project Sdk =" Microsoft.NET.Sdk" >
22
3- <PropertyGroup >
4- <TargetFramework >net472</TargetFramework >
5- <Version >2.0.22</Version >
6- </PropertyGroup >
3+ <PropertyGroup >
4+ <TargetFramework >net472</TargetFramework >
5+ <Version >2.0.22</Version >
6+ </PropertyGroup >
77
8- <ItemGroup >
9- <PackageReference Include =" ILRepack" Version =" 2.0.22" GeneratePathProperty =" true" />
10- <PackageReference Include =" ILRepack.Lib" Version =" 2.0.22" />
11- <PackageReference Include =" Microsoft.Build.Utilities.Core" Version =" 17.8.3" />
12- </ItemGroup >
8+ <ItemGroup >
9+ <PackageReference Include =" ILRepack" Version =" 2.0.22" GeneratePathProperty =" true" />
10+ <PackageReference Include =" ILRepack.Lib" Version =" 2.0.22" />
11+ <PackageReference Include =" Microsoft.Build.Utilities.Core" Version =" 17.8.3" />
12+ </ItemGroup >
1313
14- <ItemGroup >
15- <None Include =" build\ILRepack.Lib.MSBuild.Task.nuspec" />
16- <None Include =" ILRepack.Config.props" />
17- <None Include =" ILRepack.Lib.MSBuild.Task.snk" />
18- <None Include =" ILRepack.Lib.MSBuild.Task.targets" CopyToOutputDirectory =" PreserveNewest" />
19- </ItemGroup >
14+ <ItemGroup >
15+ <None Include =" build\ILRepack.Lib.MSBuild.Task.nuspec" />
16+ <None Include =" ILRepack.Config.props" />
17+ <None Include =" ILRepack.Lib.MSBuild.Task.snk" />
18+ <None Include =" ILRepack.Lib.MSBuild.Task.targets" CopyToOutputDirectory =" PreserveNewest" />
19+ </ItemGroup >
2020
21- <Target Name =" Repack" AfterTargets =" Build" >
22- <Exec Command =" " $(ILRepack)" /out:ILRepack.Lib.MSBuild.Task.dll ILRepack.Lib.MSBuild.Task.dll ILRepack.dll"
23- WorkingDirectory =" $(OutDir)"
24- ConsoleToMSBuild =" True" />
25- </Target >
21+ <Target Name =" Repack" AfterTargets =" Build" >
22+ <Exec Command =" " $(ILRepack)" /out:ILRepack.Lib.MSBuild.Task.dll ILRepack.Lib.MSBuild.Task.dll ILRepack.dll"
23+ WorkingDirectory =" $(OutDir)"
24+ ConsoleToMSBuild =" True" />
25+ </Target >
2626
27- <Target Name =" PrepareNupkgInfo" >
28- <PropertyGroup >
29- <NuspecPath >$(MSBuildThisFileDirectory)build\ILRepack.Lib.MSBuild.Task.nuspec</NuspecPath >
30- <NupkgPath >$(OutDir)ILRepack.Lib.MSBuild.Task.$(Version).nupkg</NupkgPath >
31- </PropertyGroup >
32- </Target >
27+ <Target Name =" PrepareNupkgInfo" >
28+ <PropertyGroup >
29+ <NuspecPath >$(MSBuildThisFileDirectory)build\ILRepack.Lib.MSBuild.Task.nuspec</NuspecPath >
30+ <NupkgPath >$(OutDir)ILRepack.Lib.MSBuild.Task.$(Version).nupkg</NupkgPath >
31+ </PropertyGroup >
32+ </Target >
3333
34- <Target Name =" CreateNupkg"
35- Condition =" $(Configuration) == 'Release'"
36- AfterTargets =" Build"
37- DependsOnTargets =" Repack;PrepareNupkgInfo"
38- Inputs =" $(NuspecPath);$(TargetPath);$(MSBuildThisFileFullPath)"
39- Outputs =" $(NupkgPath)" >
40- <PackTask
41- PackItem =" $(NuspecPath)"
42- NuspecFile =" $(NuspecPath)"
43- NuspecProperties =" version=$(Version)"
44- NuspecBasePath =" $(OutDir)"
45- NuspecOutputPath =" $(NuspecOutputPath)"
46- PackageOutputPath =" $(OutDir)"
47- RestoreOutputPath =" $(RestoreOutputPath)"
48- SymbolPackageFormat =" snupkg" />
49- </Target >
34+ <Target Name =" CreateNupkg"
35+ Condition =" $(Configuration) == 'Release'"
36+ AfterTargets =" Build"
37+ DependsOnTargets =" Repack;PrepareNupkgInfo"
38+ Inputs =" $(NuspecPath);$(TargetPath);$(MSBuildThisFileFullPath)"
39+ Outputs =" $(NupkgPath)" >
40+ <PackTask
41+ PackItem =" $(NuspecPath)"
42+ NuspecFile =" $(NuspecPath)"
43+ NuspecProperties =" version=$(Version)"
44+ NuspecBasePath =" $(OutDir)"
45+ NuspecOutputPath =" $(NuspecOutputPath)"
46+ PackageOutputPath =" $(OutDir)"
47+ RestoreOutputPath =" $(RestoreOutputPath)"
48+ SymbolPackageFormat =" snupkg" />
49+ </Target >
5050
5151</Project >
0 commit comments