|
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
| 2 | + |
| 3 | + <PropertyGroup> |
| 4 | + <TargetFramework>net472</TargetFramework> |
| 5 | + <RootNamespace>Lucene.Net.CodeAnalysis.Dev.Vsix</RootNamespace> |
| 6 | + <AssemblyName>Lucene.Net.CodeAnalysis.Dev.Vsix</AssemblyName> |
| 7 | + |
| 8 | + <!-- Newer versions of VS and the SDK allow loading as 64 bit, so we need this for compatibility when loading in VS --> |
| 9 | + <Prefer32Bit>false</Prefer32Bit> |
| 10 | + </PropertyGroup> |
| 11 | + |
| 12 | + <!-- If not building inside Visual Studio, convert this to a class library project so it will succeed. |
| 13 | + We don't use the output in from the command line, anyway. The BuildVsix option is so we can use |
| 14 | + the old build tools to build a VSIX on the command-line (not necessary in most cases). --> |
| 15 | + <PropertyGroup Condition="'$(BuildingInsideVisualStudio)' == 'true' Or '$(BuildVsix)' == 'true' "> |
| 16 | + <GeneratePkgDefFile>false</GeneratePkgDefFile> |
| 17 | + <IncludeAssemblyInVSIXContainer>false</IncludeAssemblyInVSIXContainer> |
| 18 | + <IncludeDebugSymbolsInVSIXContainer>false</IncludeDebugSymbolsInVSIXContainer> |
| 19 | + <IncludeDebugSymbolsInLocalVSIXDeployment>false</IncludeDebugSymbolsInLocalVSIXDeployment> |
| 20 | + <CopyBuildOutputToOutputDirectory>false</CopyBuildOutputToOutputDirectory> |
| 21 | + <CopyOutputSymbolsToOutputDirectory>false</CopyOutputSymbolsToOutputDirectory> |
| 22 | + <VSSDKTargetPlatformRegRootSuffix>Roslyn</VSSDKTargetPlatformRegRootSuffix> |
| 23 | + |
| 24 | + <!-- Import build tools --> |
| 25 | + <CustomAfterMicrosoftCSharpTargets Condition="Exists('$(VsSDKInstall)\Microsoft.VsSDK.targets')">$(VsSDKInstall)\Microsoft.VsSDK.targets</CustomAfterMicrosoftCSharpTargets> |
| 26 | + </PropertyGroup> |
| 27 | + |
| 28 | + <ItemGroup Condition="'$(BuildingInsideVisualStudio)' == 'true' Or '$(BuildVsix)' == 'true'"> |
| 29 | + <PackageReference Include="Microsoft.VSSDK.BuildTools" PrivateAssets="all" /> |
| 30 | + </ItemGroup> |
| 31 | + |
| 32 | + <Import Project="localized.resources.targets" /> |
| 33 | + |
| 34 | + <PropertyGroup> |
| 35 | + <StartAction>Program</StartAction> |
| 36 | + <StartProgram>$(DevEnvDir)devenv.exe</StartProgram> |
| 37 | + <StartArguments>/rootsuffix $(VSSDKTargetPlatformRegRootSuffix)</StartArguments> |
| 38 | + </PropertyGroup> |
| 39 | + |
| 40 | + <ItemGroup> |
| 41 | + <ProjectReference Include="..\Lucene.Net.CodeAnalysis.Dev.CodeFixes\Lucene.Net.CodeAnalysis.Dev.CodeFixes.csproj" Condition="Exists('..\Lucene.Net.CodeAnalysis.Dev.CodeFixes\Lucene.Net.CodeAnalysis.Dev.CodeFixes.csproj')" /> |
| 42 | + <ProjectReference Include="..\Lucene.Net.CodeAnalysis.Dev\Lucene.Net.CodeAnalysis.Dev.csproj" /> |
| 43 | + </ItemGroup> |
| 44 | + |
| 45 | + <ItemGroup> |
| 46 | + <!-- https://github.com/dotnet/sdk/issues/433 --> |
| 47 | + <ProjectReference Update="@(ProjectReference)" AdditionalProperties="TargetFramework=netstandard2.0" /> |
| 48 | + |
| 49 | + <!-- https://github.com/Microsoft/extendvs/issues/57 --> |
| 50 | + <ProjectReference Update="@(ProjectReference)" Name="%(Filename)" /> |
| 51 | + </ItemGroup> |
| 52 | + |
| 53 | +</Project> |
0 commit comments