File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
src/CodingWithCalvin.VsixSdk/Sdk Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,6 @@ Replace your entire `.csproj` file with the SDK-style format:
105105
106106 <ItemGroup >
107107 <PackageReference Include =" Microsoft.VisualStudio.SDK" Version =" 17.*" />
108- <PackageReference Include =" Microsoft.VSSDK.BuildTools" Version =" 17.*" PrivateAssets =" all" />
109108 </ItemGroup >
110109
111110</Project >
@@ -138,11 +137,12 @@ Convert from `packages.config` to `PackageReference` format in your `.csproj`:
138137``` xml
139138<ItemGroup >
140139 <PackageReference Include =" Microsoft.VisualStudio.SDK" Version =" 17.*" />
141- <PackageReference Include =" Microsoft.VSSDK.BuildTools" Version =" 17.*" PrivateAssets =" all" />
142140 <!-- Add other packages your extension uses -->
143141</ItemGroup >
144142```
145143
144+ > ** Note:** ` Microsoft.VSSDK.BuildTools ` is automatically included by the SDK.
145+
146146#### Step 6: Handle VSCT Files
147147
148148If you have ` .vsct ` files, they're automatically included. Remove any explicit ` <VSCTCompile> ` items unless you need custom metadata.
@@ -182,7 +182,6 @@ If you prefer to set up manually, create a `.csproj` file:
182182
183183 <ItemGroup >
184184 <PackageReference Include =" Microsoft.VisualStudio.SDK" Version =" 17.*" />
185- <PackageReference Include =" Microsoft.VSSDK.BuildTools" Version =" 17.*" PrivateAssets =" all" />
186185 </ItemGroup >
187186
188187</Project >
Original file line number Diff line number Diff line change 1414 Condition =" Exists('$(MSBuildThisFileDirectory)..\analyzers\dotnet\cs\CodingWithCalvin.VsixSdk.Generators.dll')" />
1515 </ItemGroup >
1616
17+ <!--
18+ Implicit package references for VSIX development.
19+ Users can override the version by setting VssdkBuildToolsVersion before SDK import.
20+ -->
21+ <PropertyGroup >
22+ <VssdkBuildToolsVersion Condition =" '$(VssdkBuildToolsVersion)' == ''" >17.*</VssdkBuildToolsVersion >
23+ </PropertyGroup >
24+
25+ <ItemGroup >
26+ <PackageReference Include =" Microsoft.VSSDK.BuildTools" Version =" $(VssdkBuildToolsVersion)" PrivateAssets =" all" />
27+ </ItemGroup >
28+
1729 <PropertyGroup >
1830 <!-- Identify that this SDK is in use -->
1931 <UsingCodingWithCalvinVsixSdk >true</UsingCodingWithCalvinVsixSdk >
You can’t perform that action at this time.
0 commit comments