-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET 7 RC1 dotnet build fails without errors on MAC M1 #7840
Comments
This is also happening on 4.2 GHz Quad-Core Intel Core i7 iMAC. |
Can you please let us know how I can remove the .Net 7 version ? the dotnet-core-uninstall does not work and VS preivew automtically installed this version |
I'm having the same issue, passing |
Thanks! -- for now I just ran : dotnet new globaljson and then changd the globaljson of my project to { Good to know you have the option you provided as well! |
We're experiencing w/Intel CPUs like @wickedw. May be helpful to correct the title. Is there an env var for disabling build servers? Would be helpful for cross compile. |
@rainersigwald is this related to msbuild? |
Very plausibly. dotnet/sdk#28369 disables MSBuild Server for GA. Please try setting the environment variable cc @rokonec |
Reproed consistently for me in Ubuntu. After setting the env variable and building once, it seems like things are working again, even after unsetting the environment variable. This might involve some sort of state corruption. |
@agocke Can you please share with me repro steps? |
I downloaded the rc-1 tar.gz, extracted it to a local directory (over my preview 5 copy), then simply went to a directory and did Interestingly enough, if I extracted the files to a different directory, and tried again, that worked. After I found this thread, I then set the environment variable and rebuilt and the problem went away immediately. I then removed the environment variable and tried building again. That also worked. There must be some sort of cached information that causes this issue. |
And just to confirm, did you download the Arm64 version since you mentioned you're on Mac M1? |
I use the DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER=1 and it works, then I removed the env it failed again. The env is mandatory for a successful build. I'm on archlinux x64. |
@sep2 Great. That workaround will no longer be required with the final 7.0.100 SDK (but is still needed for RC2). Sorry for the inconvenience! |
Yup I downloaded arm64 |
Just an FYI— I've been working with .NET Core since its 1.0 days and haven't encountered this issue until now. However, with .NET 8 RC2, the problem surfaced for the first time. Fortunately, setting the |
I'm uncertain whether the |
@ibro This is highly unexpected, env var |
Seems to be fine with .NET 8. |
Description
I was switching from .NET 7 Preview 7 to .NET 7 RC1 yesterday. Everything runs ok, but after some builds and runs, dotnet stops building my project.
It's the second time this happens. I need to restart the machine to get it working again.
Deleting obj and/or bin folder does not help.
Configuration
MSBuild version 17.4.0-preview-22428-01+14c24b2d3 for .NET
Tye version 0.11.0-alpha.22111.1+3edef5428949c518c078844d6438e5ba86fce600
.NET SDK:
Version: 7.0.100-rc.1.22431.12
Commit: f1cf61e1c0
Runtime Environment:
OS Name: Mac OS X
OS Version: 12.6
OS Platform: Darwin
RID: osx.12-arm64
Base Path: /usr/local/share/dotnet/sdk/7.0.100-rc.1.22431.12/
Host:
Version: 7.0.0-rc.1.22426.10
Architecture: arm64
Commit: 06aceb7015
.NET SDKs installed:
6.0.400 [/usr/local/share/dotnet/sdk]
7.0.100-preview.7.22377.5 [/usr/local/share/dotnet/sdk]
7.0.100-rc.1.22431.12 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.0-preview.7.22376.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.0-rc.1.22427.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.0-preview.7.22375.6 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.0-rc.1.22426.10 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Information
When this happens, vs code is not finding any references. Everything is signaled as red and unknown in vs code.
The text was updated successfully, but these errors were encountered: