/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Interactive/HostProcess/x64/InteractiveHost64.csproj
71 строка
5 KB
Tomáš Matoušek
Workaround for binding redirect generation issue (#75653)
30 окт 2024, 02:33
Не верифицирован
30 окт 2024, 02:33
840bbb6
Код
Авторство
О чём код?
<?xml version="1.0" encoding="utf-8"?> <!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. --> <Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> <Import Project="$(RepositoryEngineeringDir)targets\GenerateCompilerExecutableBindingRedirects.targets"/> <PropertyGroup> <Prefer32Bit>false</Prefer32Bit> <OutputType>Exe</OutputType> <TargetFrameworks>net472;$(NetVS)-windows</TargetFrameworks> <RuntimeIdentifier>win-x64</RuntimeIdentifier> <UseWindowsForms>true</UseWindowsForms> <ExcludeFromSourceOnlyBuild>true</ExcludeFromSourceOnlyBuild> <IsSymbolPublishingPackage>true</IsSymbolPublishingPackage> <!-- Publishing (only precompile binaries when building Release) --> <!-- Temporarily disable R2R until APIScan supports them https://github.com/dotnet/roslyn/issues/74135 --> <!-- <PublishReadyToRun Condition="'$(Configuration)' == 'Release'">true</PublishReadyToRun> --> <SelfContained>false</SelfContained> <PublishDocumentationFiles>false</PublishDocumentationFiles> </PropertyGroup> <ItemGroup> <ProjectReference Include="..\..\..\Compilers\Core\Portable\Microsoft.CodeAnalysis.csproj" /> <ProjectReference Include="..\..\..\Compilers\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.csproj" /> <ProjectReference Include="..\..\..\Scripting\Core\Microsoft.CodeAnalysis.Scripting.csproj" /> <ProjectReference Include="..\..\..\Scripting\CSharp\Microsoft.CodeAnalysis.CSharp.Scripting.csproj" /> <ProjectReference Include="..\..\Host\Microsoft.CodeAnalysis.InteractiveHost.csproj" /> <Content Include="..\App.config" Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'" /> <Compile Include="..\InteractiveHostEntryPoint.cs" /> </ItemGroup> <!-- BuildOnlySettings forces BuildingProject=true. Workaround for https://github.com/dotnet/msbuild/issues/10901 --> <Target Name="PublishedProjectOutputGroup" DependsOnTargets="BuildOnlySettings;PublishItemsOutputGroup" Returns="@(_VsixItem)"> <!-- Workaround for https://github.com/dotnet/sdk/issues/42255 --> <PropertyGroup> <!-- IntermediateDepsFilePath is the location where the deps.json file is originally created --> <_IntermediateDepsFilePath Condition=" '$(PublishDepsFilePath)' != ''">$(PublishDepsFilePath)</_IntermediateDepsFilePath > <_IntermediateDepsFilePath Condition=" '$(PublishDepsFilePath)' == ''">$(IntermediateOutputPath)$(ProjectDepsFileName)</_IntermediateDepsFilePath > </PropertyGroup> <ItemGroup> <!-- Need to include and then update items (https://github.com/microsoft/msbuild/issues/1053) --> <_VsixItem Include="@(PublishItemsOutputGroupOutputs->'%(OutputPath)')" /> <_VsixItem Remove="@(_VsixItem)" Condition="'%(Extension)' == '.pdb'" /> <!-- Include .deps.json file (see https://github.com/dotnet/sdk/issues/42255) --> <_VsixItem Include="$(_IntermediateDepsFilePath)" Condition="'$(TargetFrameworkIdentifier)' != '.NETFramework'" /> <!-- Include .rsp file --> <_VsixItem Include="$(MSBuildProjectDirectory)\Desktop\CSharpInteractive.rsp" Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'" /> <_VsixItem Include="$(MSBuildProjectDirectory)\Core\CSharpInteractive.rsp" Condition="'$(TargetFrameworkIdentifier)' != '.NETFramework'" /> <!-- Include the specified .editorconfig file to pickup the correct interactive settings. --> <_VsixItem Include="$(MSBuildProjectDirectory)\.editorconfig" /> <!-- Set TargetPath --> <_VsixItem Update="@(_VsixItem)" TargetPath="%(Filename)%(Extension)" Condition="'%(_VsixItem.TargetPath)' == ''" /> <!-- Set NGEN metadata --> <_VsixItem Update="@(_VsixItem)" Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework' and ('%(Extension)' == '.dll' or '%(Extension)' == '.exe')"> <Ngen>true</Ngen> <NgenPriority>3</NgenPriority> <NgenArchitecture Condition="'%(Filename)' != 'InteractiveHost64'">All</NgenArchitecture> <NgenArchitecture Condition="'%(Filename)' == 'InteractiveHost64'">X64</NgenArchitecture> <NgenApplication>[installDir]\Common7\IDE\$(CommonExtensionInstallationRoot)\$(LanguageServicesExtensionInstallationFolder)\InteractiveHost\Desktop\InteractiveHost64.exe</NgenApplication> </_VsixItem> </ItemGroup> </Target> <Target Name="PublishVsixItems" DependsOnTargets="Publish;PublishedProjectOutputGroup" Returns="@(_VsixItem)" /> </Project>