You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment: .NET 7 SDK 7.0.100-alpha.1.22071.3 and SDK 6.0.102
Repro steps:
Install .NET 7 SDK 7.0.100-alpha.1.22071.3 and SDK 6.0.102 on a clean Windows OS.
Create a new console or classlib project without specifying framework.
Expected Result:
The project should be created successfully without errors.
Actual Result:
Template conflict when creating a new console/classlib without specifying framework.
C:\Users\v-wenjj>dotnet new classlib -o mylib1
Unable to resolve the template, the following installed templates are conflicting:
Identity Template Name Short Name Language Precedence Author Package
----------------------------------- ------------- ---------- -------- ---------- --------- -------
Microsoft.Common.Library.CSharp.6.0 Class Library classlib C# 8000 Microsoft
Microsoft.Common.Library.CSharp.7.0 Class Library classlib C# 8000 Microsoft
Uninstall the templates or the packages to keep only one template from the list.
C:\Users\v-wenjj>dotnet new console -o myconsole1
Unable to resolve the template, the following installed templates are conflicting:
Identity Template Name Short Name Language Precedence Author Package
----------------------------------- ------------- ---------- -------- ---------- --------- -------
Microsoft.Common.Console.CSharp.6.0 Console App console C# 8000 Microsoft
Microsoft.Common.Console.CSharp.7.0 Console App console C# 8000 Microsoft
Uninstall the templates or the packages to keep only one template from the list.
Note:
Creating a new console/classlib project with the specified framework can succeed.
Runtime Environment:
OS Name: Windows
OS Version: 10.0.22000
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.100-alpha.1.22071.3\
Host (useful for support):
Version: 7.0.0-alpha.1.22066.4
Commit: ae2f60c950
Environment: .NET 7 SDK 7.0.100-alpha.1.22071.3 and SDK 6.0.102
Repro steps:
Expected Result:
The project should be created successfully without errors.
Actual Result:
Template conflict when creating a new console/classlib without specifying framework.
Note:
Creating a new console/classlib project with the specified framework can succeed.
Dotnet info:
.NET SDK (reflecting any global.json):
Version: 7.0.100-alpha.1.22071.3
Commit: b7180e5baf
Runtime Environment:
OS Name: Windows
OS Version: 10.0.22000
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.100-alpha.1.22071.3\
Host (useful for support):
Version: 7.0.0-alpha.1.22066.4
Commit: ae2f60c950
.NET SDKs installed:
6.0.102 [C:\Program Files\dotnet\sdk]
7.0.100-alpha.1.22071.3 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.0-alpha.1.22067.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.0-alpha.1.22066.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.0-alpha.1.22065.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
The text was updated successfully, but these errors were encountered: