Closed rbhanda closed 3 years ago
This problem persists on my machine with RC2 (RC1 uninstalled).
Even just using .fsx, with preview language features enabled, I get a slew of errors:
Error FS3217 error NU1102: Unable to find package FSharp.Core with version (>= 5.0.0) F# Miscellaneous Files
Error FS3217 error NU1102: - Found 35 version(s) in nuget.org [ Nearest version: 5.0.0-beta.20417.1 ] F# Miscellaneous Files Error FS3217 error NU1102: - Found 0 version(s) in Microsoft Visual Studio Offline Packages F# Miscellaneous Files
Tagging @cartermp and @KathleenDollard
Severity Code Description Project File Line Suppression State Error NETSDK1130 Referencing a Windows Metadata component directly when targeting .NETCoreApp,Version=v5.0 is not supported. Use the C#/WinRT projection tool (https://aka.ms/cswinrt) or a provided projection for this target. Project.SomeName C:\Program Files\dotnet\sdk\5.0.100-rc.2.20479.15\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets 934
This is the new norm after I upgraded my project to RC2 - i cannot tell why it fails or what I'm supposed to do.
_Sorry if this should be posted elsewhere..._
I've been seeing an issue in both Release Candidate 1 ~~and 2 **_(so it is not specific to rc2)_**~~ with **Blazor Webassembly Projects (targeting .NET 5)**. It appears like the `dotnet` executable is hanging after I stop debugging. So I can debug once, but successive times I get the following error:
```
The application is in break mode
```
![image](https://user-images.githubusercontent.com/3385986/96003199-fac97a00-0e07-11eb-8079-6c22b1b72b65.png)
```
System.ArgumentNullException
HResult=0x80004003
Message=Value cannot be null. (Parameter 'input')
Source=System.Text.RegularExpressions
StackTrace:
at System.Text.RegularExpressions.ThrowHelper.ThrowArgumentNullException(ExceptionArgument arg)
at System.Text.RegularExpressions.Regex.IsMatch(String input)
at Microsoft.AspNetCore.Builder.DebugProxyLauncher.<>c__DisplayClass10_0.
![image](https://user-images.githubusercontent.com/3385986/96003534-4f6cf500-0e08-11eb-8757-9f420eb0e374.png)
```
Application: dotnet.exe
CoreCLR Version: 5.0.20.45114
.NET Version: 5.0.0-rc.1.20451.14
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.IOException: Failed to bind to address http://127.0.0.1:9300: address already in use.
---> Microsoft.AspNetCore.Connections.AddressInUseException: Only one usage of each socket address (protocol/network address/port) is normally permitted.
---> System.Net.Sockets.SocketException (10048): Only one usage of each socket address (protocol/network address/port) is normally permitted.
at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName)
at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.
:page_facing_up: Here is the content from the Copy Details (Click To Expand)
:page_facing_up: Screenshot of killing dotnet process (Click To Expand)
:page_facing_up: Event Viewer Entries (Click To Expand)
EDIT: false alarm. this issue went away in rc2 after updating nuget packages.
@reinux I cannot reproduce what you described on my windows or macOS machine with the latest RC2. Can you file a bug here with a detailed repro? https://github.com/dotnet/fsharp
I'm becoming more convinced that this is more of a problem with the SDK installer. C# projects fail as well.
Steps:
Output:
C:\Program Files\dotnet\sdk\5.0.100-rc.2.20479.15\Microsoft.Common.CurrentVersion.targets(1180,5): error MSB3644: The reference assemblies for .NETFramework,Version=v5.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks [C:\Users\rei\source\repos\Test3\Test3.csproj]
Edit:
Tried installing Visual Studio RC2. dotnet --version
now shows 5.0.100-rc.2.20479.15, but it still gives me the same error. A new project made in VS just uses .NET Core 3.1. Clicking "Install other frameworks..." just takes me to the SDK download page.
Repairing the .NET 5 RC2 SDK fails. Here's the log file. Microsoft_.NET_SDK5.0.100-rc.2.20479.15(x64)_20201017040650.log
@joeloff Can you help here with .NET 5 RC2 SDK installation failure?
@reinux can you try deleting this file: C:\ProgramData\Package Cache{35392F9B-1C64-368F-BBE1-CDFD0B381B94}v5.0.0.0\AspNetCoreSharedFramework-x64.msi
Then run repair again
@waldimen That's the error you get when you try to compile a .Net 5.0 project using an older SDK. Did you follow the guide and ran sudo snap alias dotnet-sdk.dotnet dotnet
?
@svick I resolved it, it was caused by variable MSBuildSDKsPath set to net 3.1
Debugging blazorwebassembly hosted + .net 5 RC2 using F5 causes chrome browser to be launched with about:blank address, and after a while the following error occurs.
@reinux can you try deleting this file: C:\ProgramData\Package Cache{35392F9B-1C64-368F-BBE1-CDFD0B381B94}v5.0.0.0\AspNetCoreSharedFramework-x64.msi
Then run repair again
I did that, but I am still unable to select .net5 in VS, and if I edit the .csproj VS refuses to build (MSB3644). Running dotnet build directly works like a charm, though. I am running VS 16.7.7, and the installer did not nag me about pending updates so far.
@Trolldemorted .NET 5 RC 2 requires Visual Studio 2019 (v16.8, Preview 4)
https://dotnet.microsoft.com/download/dotnet/5.0
You can download the preview from https://visualstudio.microsoft.com/vs/preview/
Closing in favor of https://github.com/dotnet/core/issues/5545
Release Notes
Please report any issues you find with .NET 5, either responding to this issue, creating a new issue or creating a new issue in one of the following repos:
Known Issues
If there are any issues with the October 2020 release we will track them here and check issues off as they're resolved. See the linked issues for details on progress and resolution details.