Skip to content

Conversation

@pjcollins
Copy link
Member

@pjcollins pjcollins commented Jun 2, 2021

We've been seeing a NuGet restore issue when running prepare on a macOS
system with .NET 6 Preview 4 (or greater) installed:

Restoring packages for /Users/peter/source/java.interop/tools/logcat-parse/logcat-parse.csproj...
NU1202: Package Mono.CSharp 4.0.0.143 is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Package Mono.CSharp 4.0.0.143 supports: net45 (.NETFramework,Version=v4.5)
...
Errors in /Users/peter/source/java.interop/tools/logcat-parse/logcat-parse.csproj
    NU1202: Package Mono.CSharp 4.0.0.143 is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Package Mono.CSharp 4.0.0.143 supports: net45 (.NETFramework,Version=v4.5)

This issue is no longer present in a newer version of Mono 6.12 which
includes MSBuild 16.10.

We've been seeing a NuGet restore issue when running prepare on a macOS
system with .NET 6 Preview 4 (or greater) installed:

    Restoring packages for /Users/peter/source/java.interop/tools/logcat-parse/logcat-parse.csproj...
    NU1202: Package Mono.CSharp 4.0.0.143 is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Package Mono.CSharp 4.0.0.143 supports: net45 (.NETFramework,Version=v4.5)
    ...
    Errors in /Users/peter/source/java.interop/tools/logcat-parse/logcat-parse.csproj
        NU1202: Package Mono.CSharp 4.0.0.143 is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Package Mono.CSharp 4.0.0.143 supports: net45 (.NETFramework,Version=v4.5)

This error does not manifest when restoring or building with .NET 6
previews.  Avoid it by using the .NET 6 installation in path to
restore Java.Interop.sln.
@pjcollins pjcollins requested a review from jpobst June 2, 2021 17:08
@pjcollins pjcollins changed the title [prepare] Restore with dotnet instead of nuget [build] Bump to Mono with MSBuild 16.10 Jun 9, 2021
@jonpryor jonpryor merged commit 7c4f7db into dotnet:main Jun 15, 2021
jonpryor pushed a commit that referenced this pull request Jun 15, 2021
We've been seeing a NuGet restore error when running `make prepare`
on a macOS systems with .NET 6 Preview 4 (or greater) installed:

	Restoring packages for /Users/peter/source/java.interop/tools/logcat-parse/logcat-parse.csproj...
	NU1202: Package Mono.CSharp 4.0.0.143 is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Package Mono.CSharp 4.0.0.143 supports: net45 (.NETFramework,Version=v4.5)
	…
	Errors in /Users/peter/source/java.interop/tools/logcat-parse/logcat-parse.csproj
	    NU1202: Package Mono.CSharp 4.0.0.143 is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Package Mono.CSharp 4.0.0.143 supports: net45 (.NETFramework,Version=v4.5)

This error does not manifest when restoring or building with older
.NET 6 previews.

This issue is no longer present in a newer version of Mono 6.12 which
includes MSBuild 16.10.

Fix the error by provisioning Mono 6.12.0.145.
@pjcollins pjcollins deleted the dotnet-restore branch June 15, 2021 21:13
@jpobst jpobst added this to the 11.4 (16.11 / 8.11) milestone Jul 6, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants