-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathiSynaptic.Commons.msbuild
More file actions
50 lines (36 loc) · 2.67 KB
/
iSynaptic.Commons.msbuild
File metadata and controls
50 lines (36 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="utf-8" ?>
<Project ToolsVersion="4.0" DefaultTargets="BuildComplete" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SolutionName>iSynaptic.Commons</SolutionName>
<TestingFramework>NUnit</TestingFramework>
<ILMergePath Condition="$(ILMergePath) == ''">External\Tools\ILMerge</ILMergePath>
<NugetPath Condition="$(NugetPath) == ''">External\Tools\Nuget</NugetPath>
</PropertyGroup>
<Import Project="External\Tools\SolutionBuild.targets" />
<PropertyGroup>
<CommonsNuspecFile>$(MSBuildProjectDirectory)\$(SolutionName).nuspec</CommonsNuspecFile>
<PackagesPath Condition="$(PackagesPath) == ''">$(RootBuildPath)\$(Configuration)\Packages</PackagesPath>
</PropertyGroup>
<ItemGroup>
<ApplicationProject Include="Application\$(SolutionName).IL\$(SolutionName).IL.csproj" />
<ApplicationProject Include="Application\$(SolutionName)\$(SolutionName).csproj" />
<ApplicationProject Include="Application\$(SolutionName).Data\$(SolutionName).Data.csproj" />
<TestingProject Include="Testing\$(SolutionName).UnitTests\$(SolutionName).UnitTests.csproj" />
<PreLayoutOutputFilesTarget Include="MergeILAssembly" />
</ItemGroup>
<Target Name="MergeILAssembly">
<MakeDir Directories="$(BinariesPath)\Temp" />
<Exec Command=""$(ILMergePath)\ILMerge.exe" /targetplatform:v4 "/out:$(BinariesPath)\Temp\iSynaptic.Commons.dll" /internalize:"$(MSBuildProjectDirectory)\ILMergeInternalizationExcludes.txt" "$(BinariesPath)\iSynaptic.Commons.dll" "$(BinariesPath)\iSynaptic.Commons.IL.dll" "$(BinariesPath)\iSynaptic.Commons.Data.dll"" />
<Delete Files="$(BinariesPath)\iSynaptic.Commons.dll;$(BinariesPath)\iSynaptic.Commons.pdb" />
<Delete Files="$(BinariesPath)\iSynaptic.Commons.Data.dll;$(BinariesPath)\iSynaptic.Commons.Data.pdb" />
<Delete Files="$(BinariesPath)\iSynaptic.Commons.IL.dll;$(BinariesPath)\iSynaptic.Commons.IL.pdb" />
<Move SourceFiles="$(BinariesPath)\Temp\iSynaptic.Commons.dll;$(BinariesPath)\Temp\iSynaptic.Commons.pdb"
DestinationFiles="$(BinariesPath)\iSynaptic.Commons.dll;$(BinariesPath)\iSynaptic.Commons.pdb" />
<RemoveDir Directories="$(BinariesPath)\Temp" />
</Target>
<Target Name="CorePackage">
<MakeDir Directories="$(PackagesPath)" />
<Copy SourceFiles="iSynaptic.Commons.ReleaseNotes.txt" DestinationFolder="$(BaseBuildPath)" />
<Exec Command="$(NugetPath)\nuget.exe pack "$(CommonsNuspecFile)" -BasePath "$(BaseBuildPath)" -OutputDirectory "$(PackagesPath)"" />
</Target>
</Project>