Skip to content

Commit 19d9607

Browse files
committedSep 26, 2019
Update build scripts and projects
1 parent 9a39250 commit 19d9607

File tree

4 files changed

+17
-16
lines changed

4 files changed

+17
-16
lines changed
 

‎LICENSE.dnlib.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<LICENSE>
2-
Copyright (C) 2012-2018 de4dot@gmail.com
2+
Copyright (C) 2012-2019 de4dot@gmail.com
33

44
Permission is hereby granted, free of charge, to any person obtaining
55
a copy of this software and associated documentation files (the

‎build.cmd

+3-6
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@ msbuild -v:m -restore -t:Build -p:Configuration=Release -p:TargetFramework=net35
44
del Release\net35\*.pdb Release\net35\*.xml Release\net35\Test.Rename.* || goto :error
55

66
dotnet publish -c Release -f netcoreapp2.1 -o publish-netcoreapp2.1 de4dot || goto :error
7-
del publish-netcoreapp2.1\*.pdb || goto :error
8-
del publish-netcoreapp2.1\*.xml || goto :error
9-
dotnet publish -c Release -f netcoreapp3.0 -o publish-netcoreapp3.0 de4dot || goto :error
10-
del publish-netcoreapp3.0\*.pdb || goto :error
11-
del publish-netcoreapp3.0\*.xml || goto :error
7+
del publish-netcoreapp2.1\*.pdb publish-netcoreapp2.1\*.xml || goto :error
128

13-
exit /b 0
9+
dotnet publish -c Release -f netcoreapp3.0 -o publish-netcoreapp3.0 de4dot || goto :error
10+
del publish-netcoreapp3.0\*.pdb publish-netcoreapp3.0\*.xml || goto :error
1411

1512
goto :EOF
1613

‎de4dot.code/de4dot.code.csproj

-9
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,4 @@
2828
<PackageReference Include="System.Drawing.Common" Version="4.5.1" Condition=" '$(De4DotNetFramework)' != 'true' " />
2929
</ItemGroup>
3030

31-
<ItemGroup>
32-
<LicenseFiles Include="$(SolutionDir)\LICENSE.*" />
33-
<LicenseFiles Include="$(SolutionDir)\COPYING" />
34-
</ItemGroup>
35-
36-
<Target Name="CopyLicenseFiles" AfterTargets="AfterBuild">
37-
<Copy SourceFiles="@(LicenseFiles)" DestinationFolder="$(TargetDir)LICENSES" />
38-
</Target>
39-
4031
</Project>

‎de4dot/de4dot.csproj

+13
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,17 @@
1212
<ProjectReference Include="..\de4dot.cui\de4dot.cui.csproj" />
1313
</ItemGroup>
1414

15+
<ItemGroup>
16+
<LicenseFiles Include="$(MSBuildThisFileDirectory)\..\LICENSE.*" />
17+
<LicenseFiles Include="$(MSBuildThisFileDirectory)\..\COPYING" />
18+
</ItemGroup>
19+
20+
<Target Name="CopyLicenseFiles_AfterBuild" AfterTargets="AfterBuild">
21+
<Copy SourceFiles="@(LicenseFiles)" DestinationFolder="$(TargetDir)LICENSES" />
22+
</Target>
23+
24+
<Target Name="CopyLicenseFiles_Publish" AfterTargets="Publish">
25+
<Copy SourceFiles="@(LicenseFiles)" DestinationFolder="$(PublishDir)LICENSES" />
26+
</Target>
27+
1528
</Project>

0 commit comments

Comments
 (0)
Please sign in to comment.