Skip to content

Commit

Permalink
[microsoft#3431] Remove dotnet core 2.1 templates from vsix - Update …
Browse files Browse the repository at this point in the history
…templates (microsoft#3619)

* Update Microsoft.VSSDK.BuildTools' version

* Remove netcoreapp2.1 suggestion from dotnet-templates

Co-authored-by: sw-joelmut <joel.mut@southworks.com>
  • Loading branch information
ceciliaavila and sw-joelmut authored Dec 11, 2021
1 parent 481ba62 commit 9d75698
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 115 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,6 @@
{
"choice": "netcoreapp3.1",
"description": "Target netcoreapp3.1"
},
{
"choice": "netcoreapp2.2",
"description": "Target netcoreapp2.2"
},
{
"choice": "netcoreapp2.1",
"description": "Target netcoreapp2.1"
}
],
"replaces": "__NETCOREAPP_VERSION__",
Expand All @@ -68,25 +60,6 @@
"description": "If specified, will also create a test project for your bot.",
"isRequired": false
},
"AspCoreAssemblyVersion": {
"type":"generated",
"generator": "switch",
"dataType": "string",
"replaces": "__MICROSOFT_ASPNETCORE_VERSION__",
"parameters": {
"evaluator": "C++",
"cases": [
{
"condition": "(Framework==\"netcoreapp2.2\")",
"value": "'Microsoft.AspNetCore' Version='2.2.0'"
},
{
"condition": "(Framework==\"netcoreapp2.1\")",
"value": "'Microsoft.AspNetCore' Version='2.1.6'"
}
]
}
},
"ReadmeNetCorePrereqVersion": {
"type":"generated",
"generator": "switch",
Expand All @@ -98,14 +71,6 @@
{
"condition": "(Framework==\"netcoreapp3.1\")",
"value": "3.1"
},
{
"condition": "(Framework==\"netcoreapp2.2\")",
"value": "2.2"
},
{
"condition": "(Framework==\"netcoreapp2.1\")",
"value": "2.1"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,38 +47,11 @@
{
"choice": "netcoreapp3.1",
"description": "Target netcoreapp3.1"
},
{
"choice": "netcoreapp2.2",
"description": "Target netcoreapp2.2"
},
{
"choice": "netcoreapp2.1",
"description": "Target netcoreapp2.1"
}
],
"replaces": "__NETCOREAPP_VERSION__",
"defaultValue": "netcoreapp3.1"
},
"AspCoreAssemblyVersion": {
"type":"generated",
"generator": "switch",
"dataType": "string",
"replaces": "__MICROSOFT_ASPNETCORE_VERSION__",
"parameters": {
"evaluator": "C++",
"cases": [
{
"condition": "(Framework==\"netcoreapp2.2\")",
"value": "'Microsoft.AspNetCore' Version='2.2.0'"
},
{
"condition": "(Framework==\"netcoreapp2.1\")",
"value": "'Microsoft.AspNetCore' Version='2.1.6'"
}
]
}
},
"ReadmeNetCorePrereqVersion": {
"type":"generated",
"generator": "switch",
Expand All @@ -90,14 +63,6 @@
{
"condition": "(Framework==\"netcoreapp3.1\")",
"value": "3.1"
},
{
"condition": "(Framework==\"netcoreapp2.2\")",
"value": "2.2"
},
{
"condition": "(Framework==\"netcoreapp2.1\")",
"value": "2.1"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,38 +47,11 @@
{
"choice": "netcoreapp3.1",
"description": "Target netcoreapp3.1"
},
{
"choice": "netcoreapp2.2",
"description": "Target netcoreapp2.2"
},
{
"choice": "netcoreapp2.1",
"description": "Target netcoreapp2.1"
}
],
"replaces": "__NETCOREAPP_VERSION__",
"defaultValue": "netcoreapp3.1"
},
"AspCoreAssemblyVersion": {
"type":"generated",
"generator": "switch",
"dataType": "string",
"replaces": "__MICROSOFT_ASPNETCORE_VERSION__",
"parameters": {
"evaluator": "C++",
"cases": [
{
"condition": "(Framework==\"netcoreapp2.2\")",
"value": "'Microsoft.AspNetCore' Version='2.2.0'"
},
{
"condition": "(Framework==\"netcoreapp2.1\")",
"value": "'Microsoft.AspNetCore' Version='2.1.6'"
}
]
}
},
"ReadmeNetCorePrereqVersion": {
"type":"generated",
"generator": "switch",
Expand All @@ -90,14 +63,6 @@
{
"condition": "(Framework==\"netcoreapp3.1\")",
"value": "3.1"
},
{
"condition": "(Framework==\"netcoreapp2.2\")",
"value": "2.2"
},
{
"condition": "(Framework==\"netcoreapp2.1\")",
"value": "2.1"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="packages\Microsoft.VSSDK.BuildTools.17.0.1619-preview1\build\Microsoft.VSSDK.BuildTools.props" Condition="Exists('packages\Microsoft.VSSDK.BuildTools.17.0.1619-preview1\build\Microsoft.VSSDK.BuildTools.props')" />
<Import Project="packages\Microsoft.VSSDK.BuildTools.17.0.5232\build\Microsoft.VSSDK.BuildTools.props" Condition="Exists('packages\Microsoft.VSSDK.BuildTools.17.0.5232\build\Microsoft.VSSDK.BuildTools.props')" />
<PropertyGroup>
<MinimumVisualStudioVersion>15.0</MinimumVisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
Expand Down Expand Up @@ -126,7 +126,7 @@
<PropertyGroup>
<PreBuildEvent>powershell New-Item -ItemType Directory -Force -Path '$(ProjectDir)ProjectTemplates'
powershell Compress-Archive -Path '$(SolutionDir)UncompressedProjectTemplates\*' -DestinationPath $(ProjectDir)ProjectTemplates\Bot` Framework.zip -Force
</PreBuildEvent>
</PreBuildEvent>
</PropertyGroup>
<Import Project="packages\Microsoft.VisualStudio.Threading.Analyzers.15.8.122\build\Microsoft.VisualStudio.Threading.Analyzers.targets" Condition="Exists('packages\Microsoft.VisualStudio.Threading.Analyzers.15.8.122\build\Microsoft.VisualStudio.Threading.Analyzers.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
Expand All @@ -135,11 +135,11 @@ powershell Compress-Archive -Path '$(SolutionDir)UncompressedProjectTemplates\*'
</PropertyGroup>
<Error Condition="!Exists('packages\Microsoft.VisualStudio.Threading.Analyzers.15.8.122\build\Microsoft.VisualStudio.Threading.Analyzers.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.VisualStudio.Threading.Analyzers.15.8.122\build\Microsoft.VisualStudio.Threading.Analyzers.targets'))" />
<Error Condition="!Exists('packages\Microsoft.VisualStudio.SDK.Analyzers.15.8.33\build\Microsoft.VisualStudio.SDK.Analyzers.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.VisualStudio.SDK.Analyzers.15.8.33\build\Microsoft.VisualStudio.SDK.Analyzers.targets'))" />
<Error Condition="!Exists('packages\Microsoft.VSSDK.BuildTools.17.0.1619-preview1\build\Microsoft.VSSDK.BuildTools.props')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.VSSDK.BuildTools.17.0.1619-preview1\build\Microsoft.VSSDK.BuildTools.props'))" />
<Error Condition="!Exists('packages\Microsoft.VSSDK.BuildTools.17.0.1619-preview1\build\Microsoft.VSSDK.BuildTools.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.VSSDK.BuildTools.17.0.1619-preview1\build\Microsoft.VSSDK.BuildTools.targets'))" />
<Error Condition="!Exists('packages\Microsoft.VSSDK.BuildTools.17.0.5232\build\Microsoft.VSSDK.BuildTools.props')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.VSSDK.BuildTools.17.0.5232\build\Microsoft.VSSDK.BuildTools.props'))" />
<Error Condition="!Exists('packages\Microsoft.VSSDK.BuildTools.17.0.5232\build\Microsoft.VSSDK.BuildTools.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\Microsoft.VSSDK.BuildTools.17.0.5232\build\Microsoft.VSSDK.BuildTools.targets'))" />
</Target>
<Import Project="packages\Microsoft.VisualStudio.SDK.Analyzers.15.8.33\build\Microsoft.VisualStudio.SDK.Analyzers.targets" Condition="Exists('packages\Microsoft.VisualStudio.SDK.Analyzers.15.8.33\build\Microsoft.VisualStudio.SDK.Analyzers.targets')" />
<Import Project="packages\Microsoft.VSSDK.BuildTools.17.0.1619-preview1\build\Microsoft.VSSDK.BuildTools.targets" Condition="Exists('packages\Microsoft.VSSDK.BuildTools.17.0.1619-preview1\build\Microsoft.VSSDK.BuildTools.targets')" />
<Import Project="packages\Microsoft.VSSDK.BuildTools.17.0.5232\build\Microsoft.VSSDK.BuildTools.targets" Condition="Exists('packages\Microsoft.VSSDK.BuildTools.17.0.5232\build\Microsoft.VSSDK.BuildTools.targets')" />
<!-- 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
10 changes: 5 additions & 5 deletions generators/vsix-vs-win/BotBuilderVSIX-V4/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.VisualStudio.SDK.Analyzers" version="15.8.33" targetFramework="net46" />
<package id="Microsoft.VisualStudio.Threading.Analyzers" version="15.8.122" targetFramework="net46" />
<package id="Microsoft.VSSDK.BuildTools" version="17.0.1619-preview1" targetFramework="net46" developmentDependency="true" />
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.VisualStudio.SDK.Analyzers" version="15.8.33" targetFramework="net46" />
<package id="Microsoft.VisualStudio.Threading.Analyzers" version="15.8.122" targetFramework="net46" />
<package id="Microsoft.VSSDK.BuildTools" version="17.0.5232" targetFramework="net46" developmentDependency="true" />
</packages>

0 comments on commit 9d75698

Please sign in to comment.