|
13 | 13 | <LangVersion>10</LangVersion> |
14 | 14 | <TargetFramework>net6.0</TargetFramework> |
15 | 15 | </PropertyGroup> |
16 | | - <PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0' "> |
| 16 | + <PropertyGroup> |
17 | 17 | <DefineConstants>$(DefineConstants);NETCORE;AZURE_CORE;JAVA_SUPPORT</DefineConstants> |
18 | 18 | </PropertyGroup> |
19 | | - <PropertyGroup Condition=" '$(TargetFramework)' == 'net462' "> |
20 | | - <DefineConstants>$(DefineConstants);NETFX;IIS_SUPPORT;USE_NUGET_V2_LIBS;USE_OCTODIFF_EXE;</DefineConstants> |
21 | | - </PropertyGroup> |
22 | 19 | <ItemGroup> |
23 | 20 | <PackageReference Include="System.DirectoryServices.AccountManagement" Version="4.7.0" /> |
24 | 21 | <PackageReference Include="WireMock.Net" Version="1.6.9" /> |
|
247 | 244 | <CreateItem Include="@(PackageDefinitions)" Condition="'%(Name)' == 'ScriptCS'"> |
248 | 245 | <Output TaskParameter="Include" ItemName="ScriptCSRef" /> |
249 | 246 | </CreateItem> |
250 | | - <CreateItem Include="@(PackageDefinitions)" Condition=" '$(TargetFramework)' == 'net462' And '%(Name)' == 'NuGet.CommandLine'"> |
251 | | - <Output TaskParameter="Include" ItemName="NuGetCommandLineRef" /> |
252 | | - </CreateItem> |
253 | 247 | <PropertyGroup> |
254 | 248 | <ScriptCS>@(ScriptCSRef->'%(ResolvedPath)')/tools/*.*</ScriptCS> |
255 | 249 | <ScriptCSExe Condition="'$(TargetFramework)' == 'net6.0'">@(ScriptCSRef->'%(ResolvedPath)')/tools/*.exe</ScriptCSExe> |
256 | | - <NuGetCommandLine>@(NuGetCommandLineRef->'%(ResolvedPath)')/tools/*.*</NuGetCommandLine> |
257 | 250 | </PropertyGroup> |
258 | 251 | <ItemGroup> |
259 | 252 | <ScriptCSFiles Include="$(ScriptCS)" /> |
260 | 253 | <ScriptCSFilesExe Condition="'$(TargetFramework)' == 'net6.0'" Include="$(ScriptCSExe)" /> |
261 | 254 | <DotnetScriptFiles Condition="'$(TargetFramework)' == 'net6.0'" Include="$(MSBuildProjectDirectory)/../Calamari.Scripting/DotnetScript/dotnet-script.*.zip" /> |
262 | 255 | <DotnetScriptFilesExe Condition="'$(TargetFramework)' == 'net6.0'" Include="$(OutDir)/dotnet-script/*.sh;$(OutDir)/dotnet-script/*.exe" /> |
263 | | - <NuGetFiles Include="$(NuGetCommandLine)" Condition=" '$(TargetFramework)' == 'net462'" /> |
264 | 256 | </ItemGroup> |
265 | 257 | <Exec Command="chmod +x %(ScriptCSFilesExe.Identity)" IgnoreExitCode="true" Condition="'$(TargetFramework)' == 'net6.0'" /> |
266 | 258 | <Copy SourceFiles="@(ScriptCSFiles)" DestinationFolder="$(OutDir)/ScriptCS/" SkipUnchangedFiles="true" /> |
267 | | - <Copy SourceFiles="@(NuGetFiles)" DestinationFolder="$(OutDir)/NuGet/" SkipUnchangedFiles="true" Condition="'$(TargetFramework)' == 'net462'" /> |
268 | 259 | <Unzip SourceFiles="@(DotnetScriptFiles)" DestinationFolder="$(OutDir)/" SkipUnchangedFiles="true" /> |
269 | 260 | <Exec Command="chmod +x %(DotnetScriptFilesExe.Identity)" IgnoreExitCode="true" Condition="'$(TargetFramework)' == 'net6.0'" /> |
270 | 261 | <Copy SourceFiles="@(ScriptCSFiles)" DestinationFolder="$(PublishDir)/ScriptCS/" Condition="'$(PublishDir)' != ''" /> |
|
0 commit comments