295 lines
16 KiB
XML
295 lines
16 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="15.0">
|
|
<PropertyGroup>
|
|
<VsixVersion>15.6</VsixVersion>
|
|
<VsixVersion Condition="'$(BuildNumber)'!=''">$(VsixVersion).$(BuildNumber)</VsixVersion>
|
|
<VsixVersion Condition="'$(BuildNumber)'==''">$(VsixVersion).999999</VsixVersion>
|
|
<MinimumVisualStudioVersion>15.0</MinimumVisualStudioVersion>
|
|
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
|
<NuGetPackageImportStamp>
|
|
</NuGetPackageImportStamp>
|
|
<UseCodebase>true</UseCodebase>
|
|
<SignAssembly>true</SignAssembly>
|
|
<AssemblyOriginatorKeyFile>..\..\build\Key.snk</AssemblyOriginatorKeyFile>
|
|
<!-- Use the RoslynDev Experimental instance so we can mingle with local builds of Roslyn -->
|
|
<VSSDKTargetPlatformRegRootSuffix>RoslynDev</VSSDKTargetPlatformRegRootSuffix>
|
|
<!-- Make sure debug launches the RoslynDev instance as well. -->
|
|
<StartAction>Program</StartAction>
|
|
<StartProgram>$(DevEnvDir)devenv.exe</StartProgram>
|
|
<StartArguments>/rootsuffix RoslynDev /log</StartArguments>
|
|
<!-- Required to place the vsix in the right location by WTE MSI -->
|
|
<ExtensionInstallationRoot>CommonExtensions</ExtensionInstallationRoot>
|
|
<ExtensionInstallationFolder>Microsoft\RazorLanguageServices</ExtensionInstallationFolder>
|
|
<IsProductComponent>true</IsProductComponent>
|
|
<ImportDirectoryBuildProps>false</ImportDirectoryBuildProps>
|
|
<ImportDirectoryBuildTargets>false</ImportDirectoryBuildTargets>
|
|
</PropertyGroup>
|
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
<PropertyGroup>
|
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
<SchemaVersion>2.0</SchemaVersion>
|
|
<ProjectTypeGuids>{82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
|
<ProjectGuid>{D66B45B5-CBFD-4947-81F1-F30AB80EA992}</ProjectGuid>
|
|
<OutputType>Library</OutputType>
|
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
<RootNamespace>Microsoft.VisualStudio.RazorExtension</RootNamespace>
|
|
<AssemblyName>Microsoft.VisualStudio.RazorExtension</AssemblyName>
|
|
<!--
|
|
We exclude some facade-only assemblies (i.e. assemblies without any implementation) from the VSIX using the SuppressFromVsix ItemGroup listed in this file.
|
|
The list is dependent on the framework being targeted. Changes to TargetFrameworkVersion would warrant rebuilding the SuppressFromVsix ItemGroup.
|
|
-->
|
|
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
|
<GeneratePkgDefFile>true</GeneratePkgDefFile>
|
|
<IncludeAssemblyInVSIXContainer>true</IncludeAssemblyInVSIXContainer>
|
|
<IncludeDebugSymbolsInVSIXContainer>true</IncludeDebugSymbolsInVSIXContainer>
|
|
<IncludeDebugSymbolsInLocalVSIXDeployment>true</IncludeDebugSymbolsInLocalVSIXDeployment>
|
|
<CopyBuildOutputToOutputDirectory>true</CopyBuildOutputToOutputDirectory>
|
|
<CopyOutputSymbolsToOutputDirectory>false</CopyOutputSymbolsToOutputDirectory>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<DebugType>full</DebugType>
|
|
<Optimize>false</Optimize>
|
|
<OutputPath>bin\Debug\</OutputPath>
|
|
<DefineConstants>DEBUG;TRACE;RAZOR_EXTENSION_DEVELOPER_MODE</DefineConstants>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
<DebugType>pdbonly</DebugType>
|
|
<Optimize>true</Optimize>
|
|
<OutputPath>bin\Release\</OutputPath>
|
|
<DefineConstants>TRACE</DefineConstants>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<Compile Include="DocumentInfo\RazorDocumentInfoViewModel.cs" />
|
|
<Compile Include="DocumentInfo\RazorDocumentInfoWindow.cs" />
|
|
<Compile Include="DocumentInfo\RazorDocumentInfoWindowCommand.cs" />
|
|
<Compile Include="DocumentInfo\RazorDocumentInfoWindowControl.xaml.cs">
|
|
<DependentUpon>RazorDocumentInfoWindowControl.xaml</DependentUpon>
|
|
</Compile>
|
|
<Compile Include="RazorInfo\AssemblyViewModel.cs" />
|
|
<Compile Include="Behaviors\ItemSelectedBehavior.cs" />
|
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
<Compile Include="Properties\BindingRedirectAttributes.cs" />
|
|
<Compile Include="RazorInfo\DirectiveViewModel.cs" />
|
|
<Compile Include="RazorInfo\DocumentInfoViewModel.cs" />
|
|
<Compile Include="RazorInfo\DocumentViewModel.cs" />
|
|
<Compile Include="NotifyPropertyChanged.cs" />
|
|
<Compile Include="RazorInfo\ProjectViewModel.cs" />
|
|
<Compile Include="RazorInfo\RazorInfoToolWindow.cs" />
|
|
<Compile Include="RazorInfo\RazorInfoToolWindowCommand.cs" />
|
|
<Compile Include="RazorInfo\RazorInfoViewModel.cs" />
|
|
<Compile Include="RazorPackage.cs" />
|
|
<Compile Include="RazorInfo\ProjectInfoViewModel.cs" />
|
|
<Compile Include="RelayCommand.cs" />
|
|
<Compile Include="RazorInfo\TagHelperViewModel.cs" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Content Include="razorLanguageService.servicehub.service.json">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
<IncludeInVSIX>true</IncludeInVSIX>
|
|
</Content>
|
|
<Content Include="razorLanguageService64.servicehub.service.json">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
<IncludeInVSIX>true</IncludeInVSIX>
|
|
</Content>
|
|
<Content Include="WebConfiguration.png">
|
|
<IncludeInVSIX>true</IncludeInVSIX>
|
|
</Content>
|
|
<None Include="source.extension.vsixmanifest">
|
|
<SubType>Designer</SubType>
|
|
</None>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Reference Include="EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
|
<EmbedInteropTypes>False</EmbedInteropTypes>
|
|
</Reference>
|
|
<Reference Include="EnvDTE100, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
|
<EmbedInteropTypes>False</EmbedInteropTypes>
|
|
</Reference>
|
|
<Reference Include="EnvDTE80, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
|
<EmbedInteropTypes>False</EmbedInteropTypes>
|
|
</Reference>
|
|
<Reference Include="EnvDTE90, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
|
<EmbedInteropTypes>False</EmbedInteropTypes>
|
|
</Reference>
|
|
<Reference Include="PresentationCore" />
|
|
<Reference Include="PresentationFramework" />
|
|
<Reference Include="System" />
|
|
<Reference Include="System.Design" />
|
|
<Reference Include="System.Drawing" />
|
|
<Reference Include="System.Windows.Forms" />
|
|
<Reference Include="System.Xaml" />
|
|
<Reference Include="WindowsBase" />
|
|
</ItemGroup>
|
|
<ItemGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
<VSCTCompile Include="RazorPackage.vsct">
|
|
<ResourceName>Menus.ctmenu</ResourceName>
|
|
</VSCTCompile>
|
|
<Content Include="Resources\RazorInfoToolWindowCommand.png" />
|
|
<Content Include="Resources\RazorPackage.ico" />
|
|
<Page Include="RazorInfo\RazorInfoToolWindowControl.xaml">
|
|
<SubType>Designer</SubType>
|
|
<Generator>MSBuild:Compile</Generator>
|
|
</Page>
|
|
<Page Include="DocumentInfo\RazorDocumentInfoWindowControl.xaml">
|
|
<SubType>Designer</SubType>
|
|
<Generator>MSBuild:Compile</Generator>
|
|
</Page>
|
|
<Compile Include="RazorInfo\RazorInfoToolWindowControl.xaml.cs">
|
|
<DependentUpon>RazorInfoToolWindowControl.xaml</DependentUpon>
|
|
</Compile>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<EmbeddedResource Include="VSPackage.resx">
|
|
<MergeWithCTO>true</MergeWithCTO>
|
|
<ManifestResourceName>VSPackage</ManifestResourceName>
|
|
</EmbeddedResource>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\src\Microsoft.AspNetCore.Mvc.Razor.Extensions\Microsoft.AspNetCore.Mvc.Razor.Extensions.csproj">
|
|
<Name>Microsoft.AspNetCore.Mvc.Razor.Extensions</Name>
|
|
<Private>False</Private>
|
|
<IncludeOutputGroupsInVSIX>
|
|
</IncludeOutputGroupsInVSIX>
|
|
<IncludeOutputGroupsInVSIXLocalOnly>
|
|
</IncludeOutputGroupsInVSIXLocalOnly>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\..\src\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.csproj">
|
|
<Name>Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X</Name>
|
|
<Private>False</Private>
|
|
<IncludeOutputGroupsInVSIX>
|
|
</IncludeOutputGroupsInVSIX>
|
|
<IncludeOutputGroupsInVSIXLocalOnly>
|
|
</IncludeOutputGroupsInVSIXLocalOnly>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\..\src\Microsoft.AspNetCore.Razor.Language\Microsoft.AspNetCore.Razor.Language.csproj">
|
|
<Project>{932f3c9c-a6c0-40d3-ba50-9309886242fc}</Project>
|
|
<Name>Microsoft.AspNetCore.Razor.Language</Name>
|
|
<Private>False</Private>
|
|
<IncludeOutputGroupsInVSIX>
|
|
</IncludeOutputGroupsInVSIX>
|
|
<IncludeOutputGroupsInVSIXLocalOnly>
|
|
</IncludeOutputGroupsInVSIXLocalOnly>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\..\src\Microsoft.CodeAnalysis.Razor\Microsoft.CodeAnalysis.Razor.csproj">
|
|
<Name>Microsoft.CodeAnalysis.Razor</Name>
|
|
<Private>False</Private>
|
|
<IncludeOutputGroupsInVSIX>
|
|
</IncludeOutputGroupsInVSIX>
|
|
<IncludeOutputGroupsInVSIXLocalOnly>
|
|
</IncludeOutputGroupsInVSIXLocalOnly>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\..\src\Microsoft.CodeAnalysis.Razor.Workspaces\Microsoft.CodeAnalysis.Razor.Workspaces.csproj">
|
|
<Project>{0f265874-c592-448b-bc4f-3430ab03e0dc}</Project>
|
|
<Name>Microsoft.CodeAnalysis.Razor.Workspaces</Name>
|
|
<Private>False</Private>
|
|
<IncludeOutputGroupsInVSIX>
|
|
</IncludeOutputGroupsInVSIX>
|
|
<IncludeOutputGroupsInVSIXLocalOnly>
|
|
</IncludeOutputGroupsInVSIXLocalOnly>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\..\src\Microsoft.CodeAnalysis.Remote.Razor\Microsoft.CodeAnalysis.Remote.Razor.csproj">
|
|
<Project>{1840aad6-e26b-43ce-a2b1-7e74ad512888}</Project>
|
|
<Name>Microsoft.CodeAnalysis.Remote.Razor</Name>
|
|
<Private>False</Private>
|
|
<IncludeOutputGroupsInVSIX>
|
|
</IncludeOutputGroupsInVSIX>
|
|
<IncludeOutputGroupsInVSIXLocalOnly>
|
|
</IncludeOutputGroupsInVSIXLocalOnly>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\..\src\Microsoft.VisualStudio.Editor.Razor\Microsoft.VisualStudio.Editor.Razor.csproj">
|
|
<Project>{0bcde75a-a438-46c7-95e9-391f029d07c5}</Project>
|
|
<Name>Microsoft.VisualStudio.Editor.Razor</Name>
|
|
<Private>False</Private>
|
|
<IncludeOutputGroupsInVSIX>
|
|
</IncludeOutputGroupsInVSIX>
|
|
<IncludeOutputGroupsInVSIXLocalOnly>
|
|
</IncludeOutputGroupsInVSIXLocalOnly>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\..\src\Microsoft.VisualStudio.LanguageServices.Razor\Microsoft.VisualStudio.LanguageServices.Razor.csproj">
|
|
<Project>{92114fe9-cb07-4712-9aa4-afab65ca28e1}</Project>
|
|
<Name>Microsoft.VisualStudio.LanguageServices.Razor</Name>
|
|
<Private>False</Private>
|
|
<IncludeOutputGroupsInVSIX>
|
|
</IncludeOutputGroupsInVSIX>
|
|
<IncludeOutputGroupsInVSIXLocalOnly>
|
|
</IncludeOutputGroupsInVSIXLocalOnly>
|
|
</ProjectReference>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<!--
|
|
Versions must be written here instead of being set as MSBuild variable.
|
|
See https://github.com/dotnet/project-system/issues/2129.
|
|
-->
|
|
<PackageReference Include="Microsoft.VisualStudio.ComponentModelHost" Version="15.0.26606" />
|
|
<PackageReference Include="Microsoft.VisualStudio.Shell.15.0" Version="15.0.26606" />
|
|
<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="15.1.192" />
|
|
</ItemGroup>
|
|
<ItemDefinitionGroup>
|
|
<SuppressFromVsix>
|
|
<Visible>false</Visible>
|
|
</SuppressFromVsix>
|
|
</ItemDefinitionGroup>
|
|
<ItemGroup>
|
|
<SuppressFromVsix Include="Esent.Interop.dll" />
|
|
<SuppressFromVsix Include="Microsoft.CodeAnalysis.CSharp.EditorFeatures.dll" />
|
|
<SuppressFromVsix Include="Microsoft.CodeAnalysis.EditorFeatures.dll" />
|
|
<SuppressFromVsix Include="Microsoft.CodeAnalysis.EditorFeatures.Text.dll" />
|
|
<SuppressFromVsix Include="Microsoft.CodeAnalysis.Elfie.dll" />
|
|
<SuppressFromVsix Include="Microsoft.CodeAnalysis.Features.dll" />
|
|
<SuppressFromVsix Include="Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.dll" />
|
|
<SuppressFromVsix Include="System.AppContext.dll" />
|
|
<SuppressFromVsix Include="System.Console.dll" />
|
|
<SuppressFromVsix Include="System.Diagnostics.FileVersionInfo.dll" />
|
|
<SuppressFromVsix Include="System.Diagnostics.StackTrace.dll" />
|
|
<SuppressFromVsix Include="System.IO.Compression.dll" />
|
|
<SuppressFromVsix Include="System.IO.FileSystem.dll" />
|
|
<SuppressFromVsix Include="System.IO.FileSystem.Primitives.dll" />
|
|
<SuppressFromVsix Include="System.Runtime.InteropServices.RuntimeInformation.dll" />
|
|
<SuppressFromVsix Include="System.Security.Cryptography.Algorithms.dll" />
|
|
<SuppressFromVsix Include="System.Security.Cryptography.Encoding.dll" />
|
|
<SuppressFromVsix Include="System.Security.Cryptography.Primitives.dll" />
|
|
<SuppressFromVsix Include="System.Security.Cryptography.X509Certificates.dll" />
|
|
<SuppressFromVsix Include="System.Text.Encoding.CodePages.dll" />
|
|
<SuppressFromVsix Include="System.Threading.Thread.dll" />
|
|
<SuppressFromVsix Include="System.ValueTuple.dll" />
|
|
<SuppressFromVsix Include="System.Xml.ReaderWriter.dll" />
|
|
<SuppressFromVsix Include="System.Xml.XmlDocument.dll" />
|
|
<SuppressFromVsix Include="System.Xml.XPath.dll" />
|
|
<SuppressFromVsix Include="System.Xml.XPath.XDocument.dll" />
|
|
</ItemGroup>
|
|
<!--
|
|
Begin workaround for https://github.com/dotnet/sdk/issues/433
|
|
|
|
The VS SDK doesn't understand the new SDK-style of projects, so we need to manually add our project
|
|
references as VSIXSourceItems.
|
|
-->
|
|
<ItemDefinitionGroup>
|
|
<VSIXSourceItem>
|
|
<Visible>false</Visible>
|
|
</VSIXSourceItem>
|
|
</ItemDefinitionGroup>
|
|
<ItemGroup>
|
|
<VSIXSourceItem Include="..\..\src\Microsoft.CodeAnalysis.Remote.Razor\bin\$(Configuration)\net46\Microsoft.CodeAnalysis.Remote.Razor.dll" />
|
|
<VSIXSourceItem Include="..\..\src\Microsoft.AspNetCore.Mvc.Razor.Extensions\bin\$(Configuration)\net46\Microsoft.AspNetCore.Mvc.Razor.Extensions.dll" />
|
|
<VSIXSourceItem Include="..\..\src\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X\bin\$(Configuration)\net46\Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.dll" />
|
|
<VSIXSourceItem Include="..\..\src\Microsoft.VisualStudio.LanguageServices.Razor\bin\$(Configuration)\net46\Microsoft.AspNetCore.Razor.Language.dll" />
|
|
<VSIXSourceItem Include="..\..\src\Microsoft.VisualStudio.LanguageServices.Razor\bin\$(Configuration)\net46\Microsoft.CodeAnalysis.Razor.dll" />
|
|
<VSIXSourceItem Include="..\..\src\Microsoft.VisualStudio.LanguageServices.Razor\bin\$(Configuration)\net46\Microsoft.CodeAnalysis.Razor.Workspaces.dll" />
|
|
<VSIXSourceItem Include="..\..\src\Microsoft.VisualStudio.LanguageServices.Razor\bin\$(Configuration)\net46\Microsoft.VisualStudio.Editor.Razor.dll" />
|
|
<VSIXSourceItem Include="..\..\src\Microsoft.VisualStudio.LanguageServices.Razor\bin\$(Configuration)\net46\Microsoft.VisualStudio.LanguageServices.Razor.dll" />
|
|
<Content Include="@(VSIXSourceItem)">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</Content>
|
|
</ItemGroup>
|
|
<!-- End workaround for https://github.com/dotnet/sdk/issues/433 -->
|
|
<Target Name="GetBuildVersion" Outputs="$(VsixVersion)" />
|
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="Exists('$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets')" />
|
|
</Project>
|