Skip to content
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

dotnet8 support #38

Open
4 tasks
haraldsteinlechner opened this issue Sep 25, 2024 · 3 comments
Open
4 tasks

dotnet8 support #38

haraldsteinlechner opened this issue Sep 25, 2024 · 3 comments

Comments

@haraldsteinlechner
Copy link
Collaborator

haraldsteinlechner commented Sep 25, 2024

in my new dotnet8 branch it generally seems to work, i'm need some testing still.

I found that @jskripsky had a take on dotnet 8 as well. What was your status?

issues i found on the way

  • shall we remove the dotnet7 target since it does not work in dotnet8 envs and dotnet7 is out of support
  • is caching in design mode working as intended
  • is it ok that the ilmerge step uses netstandard build of adaptivy.msbuild.dotnet?
  • System.Diagnostics.DiagnosticSource is missing from the dependencies
    image. This seems to be a transitive dependency of the compiler services. After switching to nuget this might have been lost? Are there any other transitive deps missing?
@jskripsky
Copy link

jskripsky commented Sep 25, 2024

To be honest, the changes on my branch were nothing more than a quick and dirty hack to make Adaptify work on .NET 8 and Linux as a dotnet tool.

The only detail that might be of interest is a unrelated bug in Runner.fs. I think the line should read

let dir = Path.Combine(outputPath, hash)

instead of

let dir = Path.Combine(Path.GetTempPath(), hash)

I'll happily test @haraldsteinlechner's dotnet 8 branch on Linux in the course of the next few days.

@haraldsteinlechner
Copy link
Collaborator Author

Hi, thanks for answering and bringing up this line. Actually i noticed it when looking at the caching mechanism which seems to be broken (point 2 in my list above). In my rather huge testing project adaptify seems runs forever because of this.
I remember problems with the cache files a while back. @krauthaufen if you have memories why this line is this way, please give me some pointers. I will investigate it further tomorrow (i already created test nuget packages i need to test myself first)

@haraldsteinlechner
Copy link
Collaborator Author

hi @jskripsky
we took a quite different approach. instead of having a dotnet project which calls adaptify we call the command line tool now directly from within a msbuild targets file. we already created new version here: https://www.nuget.org/packages/adaptify/1.3.2
usage is via adaptify.msbuild, which requires the adaptify tool to be installed (best using a local dotnet tool install)
the code is currently still in this branch: https://github.com/krauthaufen/Adaptify/tree/dotnet8
i'm just testing this one in a huge project... hope this helps us getting rid of those problems altogether...

cheers,
harald

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

No branches or pull requests

2 participants