Giter VIP home page Giter VIP logo

Comments (7)

rynowak avatar rynowak commented on August 20, 2024 1

The best place to ask for this might be https://github.com/dotnet/sdk - I neither work on the SDK nor the CLR so I don't have much experience for the workflow of using custom builds.

The msbuild file that fundamentally runs the store is here: https://github.com/dotnet/sdk/blob/b5aa4a2b0db4f6203050063139e1873fa024337a/src/Tasks/Microsoft.NET.Build.Tasks/build/Microsoft.NET.ComposeStore.targets


/cc @eerhardt @JosephTremoulet in case they have any ideas about the best way to proceed

from jitbench.

vkvenkat avatar vkvenkat commented on August 20, 2024

Thanks for the pointer! I'll ask there and reply back once I have my solution.

from jitbench.

JosephTremoulet avatar JosephTremoulet commented on August 20, 2024

FWIW, when I want to use a custom clrjit.dll, then, working in the dev branch of JitBench, I just copy clrjit.dll out of D:\coreclr\bin\Product\Windows_NT.x64.Release over top of the copy under the local .dotnet directory. I'd imagine the same would work for crossgen.exe.

from jitbench.

eerhardt avatar eerhardt commented on August 20, 2024

The crossgen executable that dotnet store uses is resolved from the runtime.{RID}.Microsoft.NETCore.App NuGet package. See

https://github.com/dotnet/sdk/blob/cd25d6bbfc2aac61cc790c511900427ac64fdaa8/src/Tasks/Microsoft.NET.Build.Tasks/build/Microsoft.NET.CrossGen.targets#L60-L89

I tried overwriting the /p:CrossgenDir property on the command line, but that doesn't work since these properties are being set in a Target, and unconditionally set. If we wanted to support this scenario more, we could change that code to check if the property was already defined.

I haven't tried @JosephTremoulet's recommendation, but that sounds reasonable - overwriting the file in the NuGet cache, which is where dotnet store will pick it up from. ex. C:\Users\eerhardt\.nuget\packages\runtime.win-x64.microsoft.netcore.app\2.0.0\runtimes\win-x64\native\..\..\..\tools.

from jitbench.

vkvenkat avatar vkvenkat commented on August 20, 2024

Thanks for the suggestions! Overwriting the crossgen executable at C:\Users\Varun\.nuget\packages\runtime.win-x64.microsoft.netcore.app\2.1.0-preview2-25616-02\tools was the easiest fix for this.

from jitbench.

rynowak avatar rynowak commented on August 20, 2024

Cool, glad you found a solution.

I'm re-opening this to track updating the docs to explain this. If you this suggestion please file an issue on SDK so they can track the feedback.

from jitbench.

vkvenkat avatar vkvenkat commented on August 20, 2024

Done: #1614

from jitbench.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.