Fix dotnet sln add for multitargeted C# and VB projects.
This commit integrates a fix from the SDK repo that sets `DefaultProjectTypeGuid` for VB and C# projects when the projects are multitargeting. This property is used by `dotnet sln add` to determine the project type guid to map in the solution file. Adding additional tests that cover the multitargeting scenario for `dotnet sln add`. Fixes #9477.
This commit is contained in:
parent
ed8ee9f23b
commit
96c9dc375a
9 changed files with 141 additions and 1 deletions
|
@ -0,0 +1,9 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>MultitargetedVB</RootNamespace>
|
||||
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
|
@ -0,0 +1,7 @@
|
|||
Imports System
|
||||
|
||||
Module Program
|
||||
Sub Main(args As String())
|
||||
Console.WriteLine("Hello World!")
|
||||
End Sub
|
||||
End Module
|
Reference in a new issue