msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.22k stars 1.19k forks source link

Add mingw-w64-dotnet #20075

Open ghost opened 5 months ago

ghost commented 5 months ago

Package name

mingw-w64-dotnet

Brief description of package

.NET is the free, open-source, cross-platform framework for building modern apps and powerful cloud services.

URL for package's homepage

https://dotnet.microsoft.com/en-us/

Provide a basic test case to validate the package's functionality.

https://dotnet.microsoft.com/en-us/

MINGW environments where you need the package

Are you willing to submit a PR?

No

Kreijstal commented 4 months ago

actually this would be nice we could then build powershell as well, I wonder if we could compile dotnet from mono?

ZachBacon commented 4 months ago

I've tried to build this, its more trouble than it's worth to try and build in MSYS2. Would require massive amount of patching.

Kreijstal commented 4 months ago

I've tried to build this, its more trouble than it's worth to try and build in MSYS2. Would require massive amount of patching.

because of path rewriting? or windows linux paths?

ZachBacon commented 4 months ago

I've tried to build this, its more trouble than it's worth to try and build in MSYS2. Would require massive amount of patching.

because of path rewriting? or windows linux paths?

A little bit of everything. On Windows, it expects also the visual studio build tools, so you'd have to patch that to use what MSYS2 requires.

Kreijstal commented 4 months ago

I've tried to build this, its more trouble than it's worth to try and build in MSYS2. Would require massive amount of patching.

because of path rewriting? or windows linux paths?

A little bit of everything. On Windows, it expects also the visual studio build tools, so you'd have to patch that to use what MSYS2 requires.

well of course!

ghost commented 3 months ago

Reopened it. I know it's currently impossible, but let's not lose hope. What if, some time in the future, Microsoft would have a look at MSYS2 support? Very unlikely, but let's not lose hope 😆

ZachBacon commented 3 months ago

Reopened it. I know it's currently impossible, but let's not lose hope. What if, some time in the future, Microsoft would have a look at MSYS2 support? Very unlikely, but let's not lose hope 😆

Keep in mind. I never said it was impossible.

Kreijstal commented 3 months ago

Reopened it. I know it's currently impossible, but let's not lose hope. What if, some time in the future, Microsoft would have a look at MSYS2 support? Very unlikely, but let's not lose hope 😆

I think the best bet would be to start with dotnet 5 as it was still made with c++

ghost commented 3 months ago

Can we build this version of Mono without building the whole .NET runtime?

https://github.com/msys2/MINGW-packages/issues/20547

Kreijstal commented 3 months ago

Can we build this version of Mono without building the whole .NET runtime?

20547

you do not need to build the whole .NET runtime only the subset that is required to run the compiler so that dotnet bootstrap itself