Nicoder
Nicoder
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
Ok
72 replies
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
Would a chmod 777 fix all the permissions?
72 replies
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
Oh ok
72 replies
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
Wait, the console command doesn't copy over the same files to another dir, it just creates default ones?
72 replies
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
The one in my current dir
72 replies
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
That's why I asked for help
72 replies
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
I just don't know what
72 replies
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
Obviously I'm doing something wrong
72 replies
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
dotnet new console --name Test && cd Test && dotnet build && dotnet run still results in Hello World even if I change the code of Program.cs
72 replies
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
Hold on
72 replies
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
Yes
72 replies
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
The template "Console App" was created successfully.

Processing post-creation actions...
Restoring /Users/[my IRL name here]/Test/Test.csproj:
Determining projects to restore...
Restored /Users/[my IRL name here]/Test/Test.csproj (in 160 ms).
Restore succeeded.
The template "Console App" was created successfully.

Processing post-creation actions...
Restoring /Users/[my IRL name here]/Test/Test.csproj:
Determining projects to restore...
Restored /Users/[my IRL name here]/Test/Test.csproj (in 160 ms).
Restore succeeded.
72 replies
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
72 replies
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
That means it has nothing to do with the code, and therefore there is no point in sharing the code
72 replies
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
Even if I change the Program.cs file to just Console.WriteLine("Hello World");, the same issue persists
72 replies
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
Do I need to share the exact repo?
72 replies
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
I am trying to build it using dotnet build
72 replies
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
I got the person's code from GitHub
72 replies
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
72 replies
CC#
Created by Nicoder on 4/6/2024 in #help
✅ Having trouble compiling a C# 11 file (not mine) on Mac
Specifically a 2020 Mac M1 running Ventura 13.2.1
72 replies