File tree 1 file changed +10
-20
lines changed
1 file changed +10
-20
lines changed Original file line number Diff line number Diff line change 1
1
<Project >
2
- <Target Name =" Initialize" AfterTargets =" Publish;Build" >
3
- <CreateItem Include =" $(MSBuildThisFileDirectory)\..\" >
4
- <Output ItemName =" MSBuildThisFileDirectoryParentDirectory" TaskParameter =" Include" />
5
- </CreateItem >
6
2
7
- < CreateProperty Value = " %(MSBuildThisFileDirectoryParentDirectory.Fullpath) " >
8
- < Output PropertyName = " NugetRoot " TaskParameter = " Value " / >
9
- </ CreateProperty >
3
+ < PropertyGroup >
4
+ < _PythonWorkerToolsDir >$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)../tools'))</ _PythonWorkerToolsDir >
5
+ </ PropertyGroup >
10
6
11
- <ItemGroup >
12
- <SourceFiles Include =" $(NugetRoot)tools\**\*.*" />
13
- </ItemGroup >
14
- </Target >
7
+ <ItemGroup >
8
+ <None Include =" $(_PythonWorkerToolsDir)/**"
9
+ LinkBase =" workers/python"
10
+ CopyToOutputDirectory =" PreserveNewest"
11
+ CopyToPublishDirectory =" PreserveNewest"
12
+ Visible =" false" />
13
+ </ItemGroup >
15
14
16
- <Target Name =" CopyOnPublish" DependsOnTargets =" Initialize" AfterTargets =" Publish" >
17
- <Copy SourceFiles =" @(SourceFiles)"
18
- DestinationFiles =" @(SourceFiles->'$(PublishDir)\workers\python\%(RecursiveDir)%(Filename)%(Extension)')" />
19
- </Target >
20
-
21
- <Target Name =" CopyOnBuild" DependsOnTargets =" Initialize" AfterTargets =" Build" >
22
- <Copy SourceFiles =" @(SourceFiles)"
23
- DestinationFiles =" @(SourceFiles->'$(OutDir)\workers\python\%(RecursiveDir)%(Filename)%(Extension)')" />
24
- </Target >
25
15
</Project >
You can’t perform that action at this time.
0 commit comments