1
- <?xml version =" 1.0" encoding =" utf-8" ?>
2
- <Project ToolsVersion =" 4.0" DefaultTargets =" Clean;CreatePackage;GenerateHelpFile;GenerateSourceZip" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
- <PropertyGroup >
4
- <Configuration Condition =" '$(Configuration)' == ''" >Release</Configuration >
5
- <BuildRoot >$(MSBuildThisFileDirectory)</BuildRoot >
6
- <NuGetExe >$(BuildRoot)nuget\nuget.exe</NuGetExe >
7
- <MSBuildCommunityTasksPath >$(MSBuildThisFileDirectory)msbuild</MSBuildCommunityTasksPath >
8
- </PropertyGroup >
9
- <ItemGroup >
10
- <TargetFramework Include =" .NET Framework 3.5" >
11
- <Project >Renci.SshNet.NET35</Project >
12
- <Moniker >net35</Moniker >
13
- </TargetFramework >
14
- <TargetFramework Include =" .NET Framework 4.0" >
15
- <Project >Renci.SshNet</Project >
16
- <Moniker >net40</Moniker >
17
- </TargetFramework >
18
- <TargetFramework Include =" Windows Phone 7.1" >
19
- <Project >Renci.SshNet.WindowsPhone</Project >
20
- <Moniker >sl4-windowsphone71</Moniker >
21
- </TargetFramework >
22
- <TargetFramework Include =" Windows Phone 8.0" >
23
- <Project >Renci.SshNet.WindowsPhone8</Project >
24
- <Moniker >windowsphone8</Moniker >
25
- </TargetFramework >
26
- <TargetFramework Include =" Silverlight 4" >
27
- <Project >Renci.SshNet.Silverlight</Project >
28
- <Moniker >sl4</Moniker >
29
- </TargetFramework >
30
- <TargetFramework Include =" Silverlight 5" >
31
- <Project >Renci.SshNet.Silverlight5</Project >
32
- <Moniker >sl5</Moniker >
33
- </TargetFramework >
34
- </ItemGroup >
35
- <Import Project =" $(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.Targets" />
36
- <Target Name =" Clean" >
37
- <RemoveDir Directories =" $(MSBuildThisFileDirectory)target" />
38
- </Target >
39
-
40
- <Target Name =" Build" >
41
- <ItemGroup >
42
- <ProjectToBuild Include =" $(MSBuildThisFileDirectory)..\Renci.SshNet.sln" >
43
- <Properties >Configuration=Release</Properties >
44
- </ProjectToBuild >
45
- </ItemGroup >
46
- <MSBuild Projects =" @(ProjectToBuild)" Targets =" Rebuild" />
47
- </Target >
48
-
49
- <Target Name =" CreatePackage" DependsOnTargets =" CopyBuildOutputToPackage" >
50
- <Exec Command =" $(NuGetExe) pack $(MSBuildThisFileDirectory)nuget\SSH.NET.nuspec -OutputDirectory " $(MSBuildThisFileDirectory)target" -BasePath " $(MSBuildThisFileDirectory)target\package" -NonInteractive" />
51
- </Target >
52
- <Target Name =" CopyBuildOutputToPackage" DependsOnTargets =" Build" Outputs =" %(TargetFramework.Identity)" >
53
- <ItemGroup >
54
- <BuildOutput Remove =" @(BuildOutput)" />
55
- <BuildOutput Include =" $(MSBuildThisFileDirectory)..\%(TargetFramework.Project)\bin\$(Configuration)\Renci.SshNet.dll" />
56
- <BuildOutput Include =" $(MSBuildThisFileDirectory)..\%(TargetFramework.Project)\bin\$(Configuration)\Renci.SshNet.xml" />
57
- </ItemGroup >
58
- <Copy SourceFiles =" @(BuildOutput)" DestinationFolder =" $(MSBuildThisFileDirectory)target\package\lib\%(TargetFramework.Moniker)" />
59
- </Target >
60
- <Target Name =" GenerateHelpFile" DependsOnTargets =" Build" >
61
- <MSBuild Projects =" $(MSBuildThisFileDirectory)sandcastle\SSH.NET.shfbproj" />
62
- </Target >
63
-
64
- <Target Name =" GenerateSourceZip" >
65
- <ItemGroup >
66
- <SourceFiles Include =" $(MSBuildThisFileDirectory)..\Renci.SshNet\**" Exclude =" $(MSBuildThisFileDirectory)..\Renci.SshNet\bin\**;$(MSBuildThisFileDirectory)..\Renci.SshNet\obj\**" />
67
- <SourceFiles Include =" $(MSBuildThisFileDirectory)..\Renci.SshNet.snk" />
68
- </ItemGroup >
69
- <Zip
70
- Files=" @(SourceFiles)"
71
- WorkingDirectory=" $(MSBuildThisFileDirectory).."
72
- ZipFileName=" $(MSBuildThisFileDirectory)target\Renci.SshNet.zip"
73
- ZipLevel=" 9" />
74
- </Target >
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <Project ToolsVersion =" 4.0" DefaultTargets =" Clean;CreatePackage;GenerateHelpFile;GenerateSourceZip" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
+ <PropertyGroup >
4
+ <Configuration Condition =" '$(Configuration)' == ''" >Release</Configuration >
5
+ <BuildRoot >$(MSBuildThisFileDirectory)</BuildRoot >
6
+ <NuGetExe >$(BuildRoot)nuget\nuget.exe</NuGetExe >
7
+ <MSBuildCommunityTasksPath >$(MSBuildThisFileDirectory)msbuild</MSBuildCommunityTasksPath >
8
+ </PropertyGroup >
9
+ <ItemGroup >
10
+ <TargetFramework Include =" .NET Framework 3.5" >
11
+ <Project >Renci.SshNet.NET35</Project >
12
+ <Moniker >net35</Moniker >
13
+ </TargetFramework >
14
+ <TargetFramework Include =" .NET Framework 4.0" >
15
+ <Project >Renci.SshNet</Project >
16
+ <Moniker >net40</Moniker >
17
+ </TargetFramework >
18
+ <TargetFramework Include =" Windows Phone 7.1" >
19
+ <Project >Renci.SshNet.WindowsPhone</Project >
20
+ <Moniker >sl4-windowsphone71</Moniker >
21
+ </TargetFramework >
22
+ <TargetFramework Include =" Windows Phone 8.0" >
23
+ <Project >Renci.SshNet.WindowsPhone8</Project >
24
+ <Moniker >windowsphone8</Moniker >
25
+ </TargetFramework >
26
+ <TargetFramework Include =" Silverlight 4" >
27
+ <Project >Renci.SshNet.Silverlight</Project >
28
+ <Moniker >sl4</Moniker >
29
+ </TargetFramework >
30
+ <TargetFramework Include =" Silverlight 5" >
31
+ <Project >Renci.SshNet.Silverlight5</Project >
32
+ <Moniker >sl5</Moniker >
33
+ </TargetFramework >
34
+ </ItemGroup >
35
+ <Import Project =" $(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.Targets" />
36
+ <Target Name =" Clean" >
37
+ <RemoveDir Directories =" $(MSBuildThisFileDirectory)target" />
38
+ </Target >
39
+
40
+ <Target Name =" Build" >
41
+ <ItemGroup >
42
+ <ProjectToBuild Include =" $(MSBuildThisFileDirectory)..\Renci.SshNet.sln" >
43
+ <Properties >Configuration=Release</Properties >
44
+ </ProjectToBuild >
45
+ </ItemGroup >
46
+ <MSBuild Projects =" @(ProjectToBuild)" Targets =" Rebuild" />
47
+ </Target >
48
+
49
+ <Target Name =" CreatePackage" DependsOnTargets =" CopyBuildOutputToPackage" >
50
+ <Exec Command =" $(NuGetExe) pack $(MSBuildThisFileDirectory)nuget\SSH.NET.nuspec -OutputDirectory " $(MSBuildThisFileDirectory)target" -BasePath " $(MSBuildThisFileDirectory)target\package" -NonInteractive" />
51
+ </Target >
52
+ <Target Name =" CopyBuildOutputToPackage" DependsOnTargets =" Build" Outputs =" %(TargetFramework.Identity)" >
53
+ <ItemGroup >
54
+ <BuildOutput Remove =" @(BuildOutput)" />
55
+ <BuildOutput Include =" $(MSBuildThisFileDirectory)..\%(TargetFramework.Project)\bin\$(Configuration)\Renci.SshNet.dll" />
56
+ <BuildOutput Include =" $(MSBuildThisFileDirectory)..\%(TargetFramework.Project)\bin\$(Configuration)\Renci.SshNet.xml" />
57
+ </ItemGroup >
58
+ <Copy SourceFiles =" @(BuildOutput)" DestinationFolder =" $(MSBuildThisFileDirectory)target\package\lib\%(TargetFramework.Moniker)" />
59
+ </Target >
60
+ <Target Name =" GenerateHelpFile" DependsOnTargets =" Build" >
61
+ <MSBuild Projects =" $(MSBuildThisFileDirectory)sandcastle\SSH.NET.shfbproj" />
62
+ </Target >
63
+
64
+ <Target Name =" GenerateSourceZip" >
65
+ <ItemGroup >
66
+ <SourceFiles Include =" $(MSBuildThisFileDirectory)..\Renci.SshNet\**" Exclude =" $(MSBuildThisFileDirectory)..\Renci.SshNet\bin\**;$(MSBuildThisFileDirectory)..\Renci.SshNet\obj\**" />
67
+ <SourceFiles Include =" $(MSBuildThisFileDirectory)..\Renci.SshNet.snk" />
68
+ </ItemGroup >
69
+ <Zip
70
+ Files=" @(SourceFiles)"
71
+ WorkingDirectory=" $(MSBuildThisFileDirectory).."
72
+ ZipFileName=" $(MSBuildThisFileDirectory)target\Renci.SshNet.zip"
73
+ ZipLevel=" 9" />
74
+ </Target >
75
75
</Project >
0 commit comments