[VSPlugin] Update plugin to VS2022 (#1119 & #1209, #1221)

This commit is contained in:
Tristan McPherson 2021-12-20 12:56:59 -05:00 коммит произвёл GitHub
Родитель c6273f6041
Коммит 5137336e07
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
6 изменённых файлов: 20 добавлений и 19 удалений

Просмотреть файл

@ -153,7 +153,7 @@ rem Compile our solution. The following variables needs to be set:
rem "Project" is the solution name
rem "_platform_target" is the platform being targeted
:compile
set _option=/nologo /nr:false /m /verbosity:%__BuildVerbosity% /p:Configuration=%__BuildType% /p:Platform="%_platform_target%" /p:StrideSkipUnitTests=%__SkipTestBuild% %Project%
set _option=/nologo /nr:false /m /verbosity:%__BuildVerbosity% /p:Configuration=%__BuildType% /p:Platform="%_platform_target%" /p:StrideSkipUnitTests=%__SkipTestBuild% %Project% /p:DeployExtension=false
if "%__BuildDoc%" == "1" set _option=%_option% /p:StrideGenerateDoc=true

Просмотреть файл

@ -210,7 +210,7 @@ namespace Stride.VisualStudio.BuildEngine
private void NavigateTo(object sender, EventArgs arguments)
{
Microsoft.VisualStudio.Shell.Task task = sender as Microsoft.VisualStudio.Shell.Task;
TaskListItem task = sender as TaskListItem;
if (task == null)
throw new ArgumentException("Sender is not a Microsoft.VisualStudio.Shell.Task", "sender");

Просмотреть файл

@ -434,7 +434,7 @@ namespace NShader
private void NavigateToSourceError(object sender, EventArgs e)
{
var task = sender as Microsoft.VisualStudio.Shell.Task;
var task = sender as TaskListItem;
if (task != null)
{
GoToLocation(new RawSourceSpan(task.Document, task.Line + 1, task.Column + 1), null, false);

Просмотреть файл

@ -1,6 +1,6 @@
<Project>
<Project>
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">16.0</VisualStudioVersion>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">17.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\..\build\</SolutionDir>
<RestorePackages>true</RestorePackages>
@ -18,23 +18,22 @@
<StrideSkipAutoPack>true</StrideSkipAutoPack>
<VSSDKTargetPlatformRegRootSuffix>Stride</VSSDKTargetPlatformRegRootSuffix>
<DefineConstants>$(DefineConstants);STRIDE_VSPACKAGE</DefineConstants>
</PropertyGroup>
</PropertyGroup>
<ItemGroup>
<None Remove="NShader\Common\GLSLKeywords.map" />
<None Remove="NShader\Common\HLSLKeywords.map" />
<None Remove="NShader\Common\StrideShaderKeywords.map" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="EnvDTE80" Version="8.0.3" />
<PackageReference Include="Microsoft.VisualStudio.Designer.Interfaces" Version="1.1.4323" />
<PackageReference Include="Microsoft.VisualStudio.Editor" Version="14.0.23205" />
<PackageReference Include="Microsoft.VisualStudio.Language.StandardClassification" Version="14.0.23205" />
<PackageReference Include="Microsoft.VisualStudio.Package.LanguageService.14.0" Version="14.0.23205" />
<PackageReference Include="Microsoft.VisualStudio.Shell.Interop.14.0.DesignTime" Version="14.0.25023" />
<PackageReference Include="VSLangProj" Version="7.0.3301" />
<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="15.0.26201" />
<PackageReference Include="Microsoft.Build" Version="16.11.0" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.11.0" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="17.0.5232">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.SDK" Version="17.0.31902.203" ExcludeAssets="runtime">
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Build" Version="17.0.0" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="17.0.0" ExcludeAssets="runtime" />
<PackageReference Include="NuGet.Commands" Version="6.0.0-preview.3" />
<Reference Include="System.ComponentModel.Composition" />

Просмотреть файл

@ -2,7 +2,7 @@
<package>
<metadata>
<id>Stride.VisualStudio.Package</id>
<version>4.0.6</version>
<version>4.0.7</version>
<authors>Stride</authors>
<owners>Stride</owners>
<licenseUrl>https://github.com/stride3d/stride/blob/master/LICENSE.md</licenseUrl>

Просмотреть файл

@ -7,7 +7,9 @@
<Icon>Resources\VSPackage.ico</Icon>
</Metadata>
<Installation InstalledByMsi="false">
<InstallationTarget Version="[15.0,17.0)" Id="Microsoft.VisualStudio.Community" />
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[17.0,18.0)">
<ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.7.2,)" />
@ -18,6 +20,6 @@
<Asset Type="Microsoft.VisualStudio.MefComponent" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%|" />
</Assets>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,17.0)" DisplayName="Visual Studio core editor" />
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[17.0,18.0)" DisplayName="Visual Studio core editor" />
</Prerequisites>
</PackageManifest>