Skip to content

Draft: Support Net7 and Net8 #130

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

MakiWolf
Copy link

@MakiWolf MakiWolf commented Aug 30, 2023

This is a draft to support net7 and net8 in dotdevelop.
Can create a project for console application now.

But following errors occur when debugging in dotdevelop:
Targeting .NET 6.0 or higher in Visual Studio 2022 17.3 is not supported. (NETSDK1182)
A namespace cannot directly contain members such as fields or methods (CS0116)

And also the known issue
https://github.com/dotdevelop/dotdevelop/blob/main/Building.md#running-dotdevelop-with-net60-installed

@lextm
Copy link

lextm commented Nov 26, 2023

  1. Shouldn't obsolete SDK versions be removed?
  2. This PR isn't suitable to be merged before the actual compilation/debugging support for .NET 7/8 is added.

@MakiWolf
Copy link
Author

The problem is also when compiling. Dotdevelop uses mono msbuild fork (really outated) instead of real msbuild to compile net core projects. Because mono msbuild can compile some versions of net core and mono framework projects. Instead of dotnet msbuild which have removed support for compiling mono.

See:

dotnet/msbuild#8528

And also to remove mono msbuild is not a solution, because than we cant built mono/classic .net framework related projects. So an option would be to support both build engines and build all net core projects every time with real msbuild and mono/classic net framework related things with mono msbuild.

And the next thing is dotdevelop uses a build path for finding msbuild and new msbuild seems to do not have that path. You can simple run a terminal and dotnet msbuild, I think so.

@MakiWolf
Copy link
Author

https://github.com/Aptivi-Archives/msbuild-offline-packaging

There was an interesting project to update mono msbuild to version 17.

But there is also an open PR from there, wich never got merged into offical msbuild.

mono/msbuild#435

Not tested yet, but maybe it is useful?

@lextm
Copy link

lextm commented Nov 30, 2023

@MakiWolf Technically you can have your own MSBuild distribution (JetBrains proves the possibility and limitations, in https://blog.jetbrains.com/dotnet/2018/04/13/introducing-jetbrains-redistributable-msbuild/), but if you want to do that for this small initiative the ROI can be low.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants