Skip to content

Commit

Permalink
Fix refs and VS2022 extension loading (#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes authored Apr 12, 2023
1 parent 4e1349a commit fff9f05
Show file tree
Hide file tree
Showing 9 changed files with 148 additions and 214 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>Key.snk</AssemblyOriginatorKeyFile>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<LangVersion>latest</LangVersion>
<GeneratePkgDefFile>true</GeneratePkgDefFile>
<UseCodebase>true</UseCodebase>
<IncludeAssemblyInVSIXContainer>true</IncludeAssemblyInVSIXContainer>
Expand Down Expand Up @@ -480,7 +481,7 @@
<Version>3.5.0</Version>
</PackageReference>
<PackageReference Include="CommunityToolkit.Mvvm">
<Version>8.1.0</Version>
<Version>8.0.0</Version>
</PackageReference>
<PackageReference Include="Extended.Wpf.Toolkit">
<Version>4.3.0</Version>
Expand Down Expand Up @@ -512,7 +513,7 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.DependencyInjection">
<Version>7.0.0</Version>
<Version>6.0.1</Version>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.Composition">
<Version>16.9.20</Version>
Expand Down
25 changes: 13 additions & 12 deletions VisualStudio.Extension-2019/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
},
"CommunityToolkit.Mvvm": {
"type": "Direct",
"requested": "[8.1.0, )",
"resolved": "8.1.0",
"contentHash": "xxOt7lu9a5kB5Fs9RfcxzVlKnhuuPe+w7AXHtmCFtS3oldrsUhEMxHfNulluXSscUUoGxZ0jh55Om12ZP6abHA==",
"requested": "[8.0.0, )",
"resolved": "8.0.0",
"contentHash": "Jiu2g5WUdXRwzhJkHB+B4JBKP5A5+fp8xKiW/ZQo5PI+DruI7MbPEcK9K/Aw0YzTiWRuG6CBluzYIWN5Eo7BkQ==",
"dependencies": {
"Microsoft.Bcl.AsyncInterfaces": "7.0.0",
"Microsoft.Bcl.AsyncInterfaces": "6.0.0",
"System.ComponentModel.Annotations": "5.0.0",
"System.Memory": "4.5.5",
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
Expand Down Expand Up @@ -175,12 +175,13 @@
},
"Microsoft.Extensions.DependencyInjection": {
"type": "Direct",
"requested": "[7.0.0, )",
"resolved": "7.0.0",
"contentHash": "elNeOmkeX3eDVG6pYVeV82p29hr+UKDaBhrZyWvWLw/EVZSYEkZlQdkp0V39k/Xehs2Qa0mvoCvkVj3eQxNQ1Q==",
"requested": "[6.0.1, )",
"resolved": "6.0.1",
"contentHash": "vWXPg3HJQIpZkENn1KWq8SfbqVujVD7S7vIAyFXXqK5xkf1Vho+vG0bLBCHxU36lD1cLLtmGpfYf0B3MYFi9tQ==",
"dependencies": {
"Microsoft.Bcl.AsyncInterfaces": "7.0.0",
"Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0",
"Microsoft.Bcl.AsyncInterfaces": "6.0.0",
"Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0",
"System.Runtime.CompilerServices.Unsafe": "6.0.0",
"System.Threading.Tasks.Extensions": "4.5.4"
}
},
Expand Down Expand Up @@ -366,9 +367,9 @@
},
"nanoFramework.Tools.Debugger.Net": {
"type": "Direct",
"requested": "[2.4.11, )",
"resolved": "2.4.11",
"contentHash": "FoKxSBB9jcIAxhZLgOtg0Z7GyYtN7Y73anwaRVoeg49D4MaHSLfbskbD5NPn3l/qnPSAPbOYqontqPHcWbGjzQ==",
"requested": "[2.4.16, )",
"resolved": "2.4.16",
"contentHash": "9cZLoW/YqBlmfDtoU06Sg9vh1Us0v3YLaTPtTH1iQnIMPAzDE23o1GxwpNozdlz9M/TXd90XP07aAH1E4Yu/yA==",
"dependencies": {
"Microsoft.Extensions.Options.DataAnnotations": "7.0.0",
"Polly": "7.2.3",
Expand Down
79 changes: 43 additions & 36 deletions VisualStudio.Extension-2022/VisualStudio.Extension-vs2022.csproj
Original file line number Diff line number Diff line change
@@ -1,32 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="$(VisualStudioVersion)" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MinimumVisualStudioVersion>17.0</MinimumVisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>
<PropertyGroup>
<VsixType>v3</VsixType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;DEV17;</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE;DEV17;</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<DeployExtension>False</DeployExtension>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand All @@ -39,6 +17,7 @@
<RootNamespace>nanoFramework.Tools.VisualStudio.Extension</RootNamespace>
<AssemblyName>nanoFramework.Tools.VS2022.Extension</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<LangVersion>latest</LangVersion>
<GeneratePkgDefFile>true</GeneratePkgDefFile>
<UseCodebase>true</UseCodebase>
<IncludeAssemblyInVSIXContainer>true</IncludeAssemblyInVSIXContainer>
Expand All @@ -51,12 +30,34 @@
<StartArguments>/rootSuffix Exp</StartArguments>
<NF_Build_VS2022>True</NF_Build_VS2022>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;DEV17;</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<DeployExtension>True</DeployExtension>
<CreateVsixContainer>True</CreateVsixContainer>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE;DEV17;</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<DeployExtension>False</DeployExtension>
<CreateVsixContainer>False</CreateVsixContainer>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG</DefineConstants>
<DefineConstants>TRACE;DEBUG;DEV17;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DeployExtension>True</DeployExtension>
Expand All @@ -70,15 +71,16 @@
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>TRACE;DEV17;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DeployExtension>false</DeployExtension>
<CreateVsixContainer>True</CreateVsixContainer>
<CreateVsixContainer>False</CreateVsixContainer>
<CodeAnalysisRuleSet>
</CodeAnalysisRuleSet>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PlatformTarget>x86</PlatformTarget>
<DeployExtension>False</DeployExtension>
<DeployExtension>False</DeployExtension>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\Tools.BuildTasks-2019\ProcessResourceFiles.cs">
Expand Down Expand Up @@ -141,7 +143,7 @@
<Resource Include="Resources\Reboot.16.16.png" />
<None Include="packages.lock.json" />
<None Include="source.extension.vsixmanifest">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<SubType>Designer</SubType>
</None>
<Resource Include="Resources\RescanDevices.16.16.png" />
<Resource Include="Resources\Settings.16.16.png" />
Expand Down Expand Up @@ -182,7 +184,6 @@
<ResourceName>Menus.ctmenu</ResourceName>
<SubType>Designer</SubType>
</VSCTCompile>
<None Include="app.config" />
<Content Include="Targets\NFProjectSystem.props">
<SubType>Designer</SubType>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Expand Down Expand Up @@ -496,6 +497,9 @@
<PackageReference Include="CommunityToolkit.Mvvm">
<Version>8.1.0</Version>
</PackageReference>
<PackageReference Include="CommunityToolkit.Mvvm">
<Version>8.0.0</Version>
</PackageReference>
<PackageReference Include="EnvDTE80">
<Version>17.5.33428.366</Version>
</PackageReference>
Expand All @@ -509,7 +513,7 @@
<Version>7.2.1.6856</Version>
</PackageReference>
<PackageReference Include="MessagePack">
<Version>2.4.35</Version>
<Version>2.5.108</Version>
</PackageReference>
<PackageReference Include="Microsoft.Build">
<Version>17.5.0</Version>
Expand All @@ -529,13 +533,16 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.DependencyInjection">
<Version>7.0.0</Version>
<Version>6.0.1</Version>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions">
<Version>6.0.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.Composition">
<Version>17.4.16</Version>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.Debugger.Engine">
<Version>17.0.2012801</Version>
<Version>17.0.3041101</Version>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.ProjectSystem">
<Version>17.2.402-pre</Version>
Expand Down Expand Up @@ -583,7 +590,7 @@
<Version>17.5.33428.366</Version>
</PackageReference>
<PackageReference Include="StreamJsonRpc">
<Version>2.9.85</Version>
<Version>2.14.24</Version>
</PackageReference>
<PackageReference Include="System.Collections">
<Version>4.3.0</Version>
Expand All @@ -592,7 +599,7 @@
<Version>4.3.0</Version>
</PackageReference>
<PackageReference Include="System.Composition">
<Version>6.0.0</Version>
<Version>7.0.0</Version>
</PackageReference>
<PackageReference Include="System.Console">
<Version>4.3.1</Version>
Expand All @@ -601,7 +608,7 @@
<Version>4.3.0</Version>
</PackageReference>
<PackageReference Include="System.Diagnostics.DiagnosticSource">
<Version>6.0.0</Version>
<Version>7.0.2</Version>
</PackageReference>
<PackageReference Include="System.Diagnostics.Tracing">
<Version>4.3.0</Version>
Expand Down Expand Up @@ -652,7 +659,7 @@
</ItemGroup>
<Import Project="..\vs-extension.shared\vs-extension.shared.projitems" Label="Shared" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != '' AND Exists('$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets')" />
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
3 changes: 0 additions & 3 deletions VisualStudio.Extension-2022/app.config

This file was deleted.

Loading

0 comments on commit fff9f05

Please sign in to comment.