Skip to content

Commit

Permalink
Support Visual Studio for Mac 17.5 preview 2
Browse files Browse the repository at this point in the history
EF's Update-Database fails with an error:

Update-Database: The following exception occurred while retrieving
member "IsPathRooted": "GenericArguments[0],
'System.ReadOnlySpan`1[System.Char]', on 'System.Func`2[T,TResult]'
violates the constraint of type 'T'."

This seems to be related to VS Mac 17.5 running on .NET 7.

Build against VS Mac 17.5 preview 2.
Target .NET 7.0.
Update to PowerShell 7.3.0 which targets .NET 7.0.

Fixes #45
  • Loading branch information
mrward committed Dec 3, 2022
1 parent b99bcca commit 42689e0
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/MonoDevelop.EnvDTE/MonoDevelop.EnvDTE.vbproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<RootNamespace></RootNamespace>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<SignAssembly>true</SignAssembly>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,16 @@
<Import file="libmi.dylib" />
<Import file="libpsl-native.dylib" />
<Import file="libpsrpclient.dylib" />
<Import file="runtimes/unix/lib/net6.0/Modules/Microsoft.PowerShell.Host/Microsoft.PowerShell.Host.psd1" />
<Import file="runtimes/unix/lib/net6.0/Modules/Microsoft.PowerShell.Management/Microsoft.PowerShell.Management.psd1" />
<Import file="runtimes/unix/lib/net6.0/Modules/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.psd1" />
<Import file="runtimes/unix/lib/net6.0/Modules/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1" />
<Import file="runtimes/unix/lib/net7.0/Modules/Microsoft.PowerShell.Host/Microsoft.PowerShell.Host.psd1" />
<Import file="runtimes/unix/lib/net7.0/Modules/Microsoft.PowerShell.Management/Microsoft.PowerShell.Management.psd1" />
<Import file="runtimes/unix/lib/net7.0/Modules/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.psd1" />
<Import file="runtimes/unix/lib/net7.0/Modules/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1" />
</Runtime>
<Dependencies>
<Addin id="Core" version="17.4"/>
<Addin id="Ide" version="17.4"/>
<Addin id="PackageManagement" version="17.4"/>
<Addin id="DotNetCore" version="17.4" />
<Addin id="Core" version="17.5"/>
<Addin id="Ide" version="17.5"/>
<Addin id="PackageManagement" version="17.5"/>
<Addin id="DotNetCore" version="17.5" />
</Dependencies>

<Extension path="/MonoDevelop/Ide/Composition">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="MonoDevelop.References.props" />
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<RootNamespace>MonoDevelop.PackageManagement</RootNamespace>
<SignAssembly>true</SignAssembly>
<PublicSign>True</PublicSign>
Expand Down Expand Up @@ -53,8 +53,8 @@
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="6.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.3.0-1.final" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="7.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.4.0-4.final" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<OutputPath>..\..\bin</OutputPath>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<SignAssembly>true</SignAssembly>
<PublicSign>True</PublicSign>
<AssemblyOriginatorKeyFile>..\MonoDevelop-Public.snk</AssemblyOriginatorKeyFile>
Expand All @@ -9,7 +9,7 @@
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.2.3" />
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.3.0" />
</ItemGroup>
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.Interop">
Expand Down

0 comments on commit 42689e0

Please sign in to comment.