-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathdotnet-core-uninstall.csproj
59 lines (50 loc) · 2.4 KB
/
dotnet-core-uninstall.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>dotnet-core-uninstall</AssemblyName>
<OutputType>Exe</OutputType>
<RuntimeIdentifiers>win-x86;osx-x64;osx-arm64</RuntimeIdentifiers>
<SignAssembly>true</SignAssembly>
<TargetFramework>net8.0</TargetFramework>
<RollForward>LatestMajor</RollForward>
</PropertyGroup>
<PropertyGroup>
<LangVersion>preview</LangVersion>
<RootNamespace>Microsoft.DotNet.Tools.Uninstall</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Setup.Configuration.Interop" Version="$(MicrosoftVisualStudioSetupConfigurationPackageVersion)" />
<PackageReference Include="Microsoft.Win32.Registry" Version="4.7.0" />
<PackageReference Include="NuGet.Versioning" Version="6.9.1" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.20574.7" />
<PackageReference Include="System.CommandLine.Rendering" Version="0.3.0-alpha.20574.7" />
<PackageReference Include="System.Resources.Extensions" Version="8.0.0" />
</ItemGroup>
<ItemGroup>
<Compile Update="LocalizableStrings.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>LocalizableStrings.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="LocalizableStrings.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>LocalizableStrings.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<Target Name="PublishMacOSUniversalBinary">
<ItemGroup>
<_Rids Include="osx-x64;osx-arm64" />
<_RidSpecificBuild Include="$(MSBuildThisFile)" AdditionalProperties="RuntimeIdentifier=%(_Rids.Identity);PublishSingleFile=true;Configuration=Release;PublishSelfContained=true;" />
</ItemGroup>
<MSBuild Projects="@(_RidSpecificBuild)" BuildInParallel="true" Targets="Publish;PublishItemsOutputGroup">
<Output TaskParameter="TargetOutputs" ItemName="_RidSpecificSingleFile" />
</MSBuild>
<PropertyGroup>
<_LipoOutputDir>$(PublishDir)\osx-universal\</_LipoOutputDir>
<_LipoOutputPath>$(_LipoOutputDir)$(AssemblyName)</_LipoOutputPath>
</PropertyGroup>
<MakeDir Directories="$(_LipoOutputDir)" />
<Exec Command="lipo @(_RidSpecificSingleFile, ' ') -create -output $(_LipoOutputPath)" Condition="$([MSBuild]::IsOSPlatform('OSX'))" />
</Target>
</Project>