1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <Project ToolsVersion =" 12.0" DefaultTargets =" Build; CopyExe" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
2
+ <Project ToolsVersion =" 12.0" DefaultTargets =" Build; CopyExe; CopyExeUnix; " xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
3
<UsingTask TaskName =" Kontur.MsBuild.GitCommit2AssemblyTitle" AssemblyFile =" ..\externals\Kontur.MsBuild.dll" />
4
4
<Import Project =" $(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition =" Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
5
5
<PropertyGroup >
116
116
<Exec Command =" $(Merger) /out:" $(OutputAssembly)" @(MergeAssemblies->'" %(FullPath)" ', ' ')" />
117
117
<Exec Command =" $(OutputAssembly) help --gen $(SolutionDir)\README-commands.md" />
118
118
</Target >
119
- <Target Name =" CopyExe" DependsOnTargets =" AfterBuild" >
119
+ <Target Name =" CopyExe" DependsOnTargets =" AfterBuild" Condition = " '$(OS)' != 'Unix' " >
120
120
<Exec Command =" rmdir /S /Q %25userprofile%25\bin\dotnet" />
121
121
<Exec Command =" mkdir %25userprofile%25\bin\dotnet" />
122
122
<Exec Command =" copy $(OutputAssembly) %25userprofile%25\bin\dotnet\cm.exe" />
123
123
<Exec Command =" copy $(OutputAssembly).config %25userprofile%25\bin\dotnet\cm.exe.config" />
124
124
<Exec Command =" xcopy $(SolutionDir)\files-common %25userprofile%25\bin\dotnet /s /i /Y" />
125
125
<Exec Condition =" Exists('$(SolutionDir)\files-kontur')" Command =" xcopy $(SolutionDir)\files-kontur %25userprofile%25\bin\dotnet /s /i /Y" />
126
126
</Target >
127
- </Project >
127
+ <Target Name =" CopyExeUnix" DependsOnTargets =" AfterBuild" Condition =" '$(OS)' == 'Unix'" >
128
+ <Exec Command =" rm -rf ~/bin/dotnet" />
129
+ <Exec Command =" mkdir ~/bin/dotnet" />
130
+ <Exec Command =" cp $(OutputAssembly) ~/bin/dotnet/cm.exe" />
131
+ <Exec Command =" cp $(OutputAssembly).config ~/bin/dotnet/cm.exe.config" />
132
+ <Exec Command =" cp -R $(SolutionDir)/files-common/* ~/bin/dotnet" />
133
+ <Exec Condition =" Exists('$(SolutionDir)/files-kontur')" Command =" cp -R $(SolutionDir)/files-kontur/* ~/bin/dotnet" />
134
+ </Target >
135
+ </Project >
0 commit comments