|
8 | 8 | <BuildNumber Condition="'$(BUILD_NUMBER)' != ''">$(BUILD_NUMBER)</BuildNumber> |
9 | 9 | <BuildNumber Condition="'$(BUILD_NUMBER)' == ''">0</BuildNumber> |
10 | 10 |
|
11 | | - <ArtifactsRoot>$(MSBuildProjectDirectory)/built</ArtifactsRoot> |
12 | 11 | <ArtifactsRoot>$(MSBuildProjectDirectory)/built</ArtifactsRoot> |
13 | 12 | <LibDir>$(ArtifactsRoot)/lib</LibDir> |
14 | 13 | <DebugAdapterDir>$(ArtifactsRoot)\vscode\</DebugAdapterDir> |
|
70 | 69 | ItemName="BuildVariant"/> |
71 | 70 | </CreateItem> |
72 | 71 |
|
73 | | - <Exec Command="dotnet publish "src/%(BuildVariant.Identity)/%(BuildVariant.ProjectFile)" -f %(BuildVariant.Framework) -c $(Configuration) -p:Platform=%(BuildVariant.Platform) -p:UseAppHost=false -o "$(ArtifactsRoot)/fdd-%(BuildVariant.Suffix)/bin""/> |
| 72 | + <Exec Command="dotnet publish "src/%(BuildVariant.Identity)/%(BuildVariant.ProjectFile)" -f %(BuildVariant.Framework) -c $(Configuration) -p:Platform=%(BuildVariant.Platform) -p:UseAppHost=false -o "$(ArtifactsRoot)/fdd-%(BuildVariant.Suffix)/bin"" UseUtf8Encoding="Always"/> |
74 | 73 |
|
75 | 74 | <PropertyGroup> |
76 | 75 | <CppBinPrefix>$(MSBuildProjectDirectory)/src/ScriptEngine.NativeApi/bin/$(Configuration)</CppBinPrefix> |
|
84 | 83 | <Copy SourceFiles="@(CppX86)" DestinationFolder="$(ArtifactsRoot)/fdd-x86/bin" /> |
85 | 84 | <Copy SourceFiles="@(CppX64)" DestinationFolder="$(ArtifactsRoot)/fdd-x64/bin" /> |
86 | 85 |
|
| 86 | + <ItemGroup> |
| 87 | + <BatFilesFDD Include="$(MSBuildProjectDirectory)\install\opm.bat"/> |
| 88 | + <BatFilesFDD Include="$(MSBuildProjectDirectory)\install\oscript.bat"/> |
| 89 | + <ShFilesFDD Include="$(MSBuildProjectDirectory)\install\opm"/> |
| 90 | + <ShFilesFDD Include="$(MSBuildProjectDirectory)\install\oscript"/> |
| 91 | + </ItemGroup> |
| 92 | + |
| 93 | + <Copy SourceFiles="@(BatFilesFDD);@(ShFilesFDD)" DestinationFolder="$(ArtifactsRoot)/fdd-x86/bin"/> |
| 94 | + <Copy SourceFiles="@(BatFilesFDD);@(ShFilesFDD)" DestinationFolder="$(ArtifactsRoot)/fdd-x64/bin"/> |
| 95 | + |
87 | 96 | </Target> |
88 | 97 |
|
89 | 98 | <Target Name="MakeSCD"> |
|
96 | 105 | <RuntimeID Include="osx-arm64"/> |
97 | 106 | </ItemGroup> |
98 | 107 |
|
99 | | - <Exec Command="dotnet publish "src/oscript/oscript.csproj" -r %(RuntimeID.Identity) --self-contained -c $(Configuration) -o "$(ArtifactsRoot)/%(RuntimeID.Identity)/bin""/> |
| 108 | + <Exec Command="dotnet publish "src/oscript/oscript.csproj" -r %(RuntimeID.Identity) --self-contained -c $(Configuration) -o "$(ArtifactsRoot)/%(RuntimeID.Identity)/bin"" UseUtf8Encoding="Always"/> |
100 | 109 |
|
101 | | - <PropertyGroup> |
| 110 | + <PropertyGroup> |
102 | 111 | <CppBinPrefix>$(MSBuildProjectDirectory)/src/ScriptEngine.NativeApi/bin/$(Configuration)</CppBinPrefix> |
103 | 112 | </PropertyGroup> |
104 | 113 |
|
|
110 | 119 | <Copy SourceFiles="@(CppX86)" DestinationFolder="$(ArtifactsRoot)/win-x86/bin" /> |
111 | 120 | <Copy SourceFiles="@(CppX64)" DestinationFolder="$(ArtifactsRoot)/win-x64/bin" /> |
112 | 121 |
|
| 122 | + <ItemGroup> |
| 123 | + <BatFilesSCD Include="$(MSBuildProjectDirectory)\install\opm.bat"/> |
| 124 | + <ShFilesSCD Include="$(MSBuildProjectDirectory)\install\opm"/> |
| 125 | + </ItemGroup> |
| 126 | + |
| 127 | + <Copy SourceFiles="@(BatFilesSCD)" DestinationFolder="$(ArtifactsRoot)/win-x86/bin"/> |
| 128 | + <Copy SourceFiles="@(BatFilesSCD)" DestinationFolder="$(ArtifactsRoot)/win-x64/bin"/> |
| 129 | + <Copy SourceFiles="@(ShFilesSCD)" DestinationFolder="$(ArtifactsRoot)/linux-x64/bin"/> |
| 130 | + |
113 | 131 | </Target> |
114 | 132 |
|
115 | 133 | <Target Name="BuildDebugger"> |
|
163 | 181 | <Output TaskParameter="FirstItem" PropertyName="Runner"/> |
164 | 182 | </GetFirstItem> |
165 | 183 |
|
166 | | - <Exec Command="dotnet "$(Runner)" "$(MSBuildProjectDirectory)/install/unicode-zipper.os" unpack "$(MSBuildProjectDirectory)/install/opm.ospx" "$(LibDir)/tmp""/> |
167 | | - <Exec Command="dotnet "$(Runner)" "$(MSBuildProjectDirectory)/install/unicode-zipper.os" unpack "$(LibDir)/tmp/content.zip" "$(LibDir)/opm""/> |
| 184 | + <Exec Command="dotnet "$(Runner)" "$(MSBuildProjectDirectory)/install/unicode-zipper.os" unpack "$(MSBuildProjectDirectory)/install/opm.ospx" "$(LibDir)/tmp"" UseUtf8Encoding="Always"/> |
| 185 | + <Exec Command="dotnet "$(Runner)" "$(MSBuildProjectDirectory)/install/unicode-zipper.os" unpack "$(LibDir)/tmp/content.zip" "$(LibDir)/opm"" UseUtf8Encoding="Always"/> |
168 | 186 |
|
169 | 187 | <Copy SourceFiles="$(MSBuildProjectDirectory)\install\package-loader.os" DestinationFolder="$(LibDir)"/> |
170 | | - <Copy SourceFiles="$(MSBuildProjectDirectory)\install\opm.bat" DestinationFolder="%(Executable.RelativeDir)"/> |
171 | 188 | <RemoveDir Directories="$(LibDir)/tmp"/> |
172 | 189 |
|
173 | 190 | <PropertyGroup> |
|
187 | 204 | <Exec Command="$(OpmLaunch) install -d "$(LibDir)" %(CoreLibraries.Identity)" |
188 | 205 | IgnoreExitCode="false" |
189 | 206 | EnvironmentVariables="@(ConfigEnv)" |
190 | | - Condition="'$(SkipLibraryDownload)' == ''"/> |
| 207 | + Condition="'$(SkipLibraryDownload)' == ''" |
| 208 | + UseUtf8Encoding="Always"/> |
191 | 209 |
|
192 | 210 | </Target> |
193 | 211 |
|
|
239 | 257 | WorkingDirectory="$(TestsRoot)/%(TestAssemblies.Identity)" |
240 | 258 | Command="dotnet test --logger:"junit;LogFilePath=$(MSBuildProjectDirectory)/tests/%(TestAssemblies.Identity).xml"" |
241 | 259 | IgnoreExitCode="true" |
| 260 | + UseUtf8Encoding="Always" |
242 | 261 | /> |
243 | 262 |
|
244 | 263 | </Target> |
|
255 | 274 | <Output TaskParameter="FirstItem" PropertyName="Runner"/> |
256 | 275 | </GetFirstItem> |
257 | 276 |
|
258 | | - <Exec WorkingDirectory="$(MSBuildProjectDirectory)\tests" Command="dotnet "$(Runner)" "$(MSBuildProjectDirectory)\tests\testrunner.os" -runall . xddReportPath ." IgnoreExitCode="true"/> |
| 277 | + <Exec |
| 278 | + WorkingDirectory="$(MSBuildProjectDirectory)\tests" |
| 279 | + Command="dotnet "$(Runner)" "$(MSBuildProjectDirectory)\tests\testrunner.os" -runall . xddReportPath ." |
| 280 | + IgnoreExitCode="true" |
| 281 | + ContinueOnError="true" |
| 282 | + UseUtf8Encoding="Always"> |
| 283 | + <Output TaskParameter="ExitCode" PropertyName="TestsExitCode"/> |
| 284 | + </Exec> |
259 | 285 |
|
260 | 286 | </Target> |
261 | 287 |
|
|
284 | 310 | <Output TaskParameter="FirstItem" PropertyName="Runner"/> |
285 | 311 | </GetFirstItem> |
286 | 312 |
|
287 | | - <Exec Command="dotnet "$(Runner)" "$(MSBuildProjectDirectory)\install\unicode-zipper.os" pack "$(ArtifactsRoot)/%(RuntimeID.Identity)/*" "$(ArtifactsRoot)/OneScript-$(ReleaseNumber)-%(RuntimeID.Identity).zip""/> |
| 313 | + <Exec Command="dotnet "$(Runner)" "$(MSBuildProjectDirectory)\install\unicode-zipper.os" pack "$(ArtifactsRoot)/%(RuntimeID.Identity)/*" "$(ArtifactsRoot)/OneScript-$(ReleaseNumber)-%(RuntimeID.Identity).zip"" UseUtf8Encoding="Always"/> |
288 | 314 | <RemoveDir Directories="$(ArtifactsRoot)/%(RuntimeID.Identity)" /> |
289 | 315 | </Target> |
290 | 316 |
|
|
323 | 349 |
|
324 | 350 | <Error Text="No nuget token (/p:NugetToken=) specified" Condition="'$(NugetToken)' == ''" /> |
325 | 351 | <Exec WorkingDirectory="$(MSBuildProjectDirectory)\built\nuget" |
326 | | - Command="dotnet nuget push %(NugetAbleProject.Identity).$(ReleaseNumber).nupkg -k $(NugetToken) -s https://api.nuget.org/v3/index.json"/> |
| 352 | + Command="dotnet nuget push %(NugetAbleProject.Identity).$(ReleaseNumber).nupkg -k $(NugetToken) -s https://api.nuget.org/v3/index.json" UseUtf8Encoding="Always"/> |
327 | 353 |
|
328 | 354 | </Target> |
329 | 355 |
|
|
0 commit comments