question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possible build time regression on empty macOS (Arm64) projects

See original GitHub issue

Describe the bug

To Reproduce

  • Download and install the latest .NET 6 SDK on macOS Monterey 12.3.1 (my machine is a MacBook Pro (14-inch, 2021) M1 Max)
  • Create a new .NET console application via dotnet new console
  • Build the application via dotnet build

Exceptions (if any)

Further technical details

  • Include the output of dotnet --info
.NET SDK (reflecting any global.json):
 Version:   6.0.102
 Commit:    02d5242ed7

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  12.3
 OS Platform: Darwin
 RID:         osx.12-arm64
 Base Path:   /usr/local/share/dotnet/sdk/6.0.102/

Host (useful for support):
  Version: 6.0.2
  Commit:  839cdfb0ec

.NET SDKs installed:
  6.0.102 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  • The IDE (VS / VS Code/ VS4Mac) you’re running on, and its version

No IDE necessary for this, but I’m using VSCode 1.66.2

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
asbjornucommented, May 12, 2022

I agree such a cleanup would be sensible, @kopkako. I wasn’t even aware of the dotnet-sdk cask. The most important difference between the dotnet and dotnet-sdk casks seems to be dotnet-runtime vs. dotnet-sdk:

- url "https://download.visualstudio.microsoft.com/download/pr/#{version.csv.second}/#{version.csv.third}/dotnet-runtime-#{version.csv.first}-osx-#{arch}.pkg"
+ url "https://download.visualstudio.microsoft.com/download/pr/#{version.csv.second}/#{version.csv.third}/dotnet-sdk-#{version.csv.first}-osx-#{arch}.pkg"

The dotnet formula installs the SDK, not the runtime. As such, it’s easy to argue that dotnet-sdk would have been a better name for the formula. Either way, we could petition for the deletion of the dotnet-sdk cask, since the dotnet formula is a source-built, and thus more portable, alternative.

0reactions
richlandercommented, May 28, 2022

The latter. Folks can open an issue on the appropriate community project.

We can close this issue now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Inconsistent macOS architecture handling on Apple Silicon ...
I've confirmed that by building a CMake targeting arm64 , and one targeting x86_64 . Here's the results of running them on the...
Read more >
Cannot debug net6.0-macos Apps - Developer Community
When I hit debug, the following error is shown in the Terminal: Possible reasons for this include: * You misspelled a built-in dotnet...
Read more >
macOS: Support arm64 #78710 - Blender developer
I want to learn Blender, but I'm not in a specific hurry, therefore I'll wait for a native apple silicon version and start...
Read more >
Android IL2CPP build times really slow
How can be possible that an EMPTY project needs 13 minutes to build an apk? And on mono2x it's 1 minute or less....
Read more >
Swift 5.7 / Xcode 14 incremental build time 10x slower than ...
With just a slightly modification on my Swift project, incremental build on Xcode 13 takes about 10 seconds to complete, but on 14,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found