Skip to content

Commit 7ce45d2

Browse files
committed
fix pre build event
1 parent 725df15 commit 7ce45d2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Wox.Infrastructure/Wox.Infrastructure.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@
9494
<PackageReference Include="NLog">
9595
<Version>4.2.0</Version>
9696
</PackageReference>
97-
<PackageReference Include="NLog.Schema">
97+
<PackageReference Include="NLog.Schema" GeneratePathProperty="true">
9898
<Version>4.2.0</Version>
9999
</PackageReference>
100-
<PackageReference Include="Pinyin4DotNet">
100+
<PackageReference Include="Pinyin4DotNet" GeneratePathProperty="true">
101101
<Version>2016.4.23.4</Version>
102102
</PackageReference>
103103
<PackageReference Include="System.Runtime">
@@ -106,10 +106,10 @@
106106
</ItemGroup>
107107
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
108108
<PropertyGroup>
109-
<PreBuildEvent>cd $(UserProfile)\.nuget\packages\pinyin4dotnet\2016.4.23.4\pinyindb
110-
xcopy /Y unicode_to_hanyu_pinyin.txt $(TargetDir)pinyindb\
111-
cd $(UserProfile)\.nuget\packages\nlog.schema\4.*\content
112-
xcopy /Y NLog.xsd $(TargetDir)</PreBuildEvent>
109+
<PreBuildEvent>
110+
xcopy /Y $(PkgPinyin4DotNet)\pinyindb\unicode_to_hanyu_pinyin.txt $(TargetDir)pinyindb\
111+
xcopy /Y $(PkgNLog_Schema)\content\NLog.xsd $(TargetDir)
112+
</PreBuildEvent>
113113
</PropertyGroup>
114114
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
115115
Other similar extension points exist, see Microsoft.Common.targets.

0 commit comments

Comments
 (0)