Giter Site home page Giter Site logo

Put MSBuild on the PATH about runner-images HOT 8 CLOSED

lol768 avatar lol768 commented on September 12, 2024
Put MSBuild on the PATH

from runner-images.

Comments (8)

alepauly avatar alepauly commented on September 12, 2024 1

@lol768 thanks for your suggestion but I'm going to close this as won't fix . If you feel strongly about it and want to discuss it further please don't hesitate to reopen.

from runner-images.

github-actions avatar github-actions commented on September 12, 2024

This issue has not had any activity for 45 days and will be closed in 45 days if there continues to be no activity.

from runner-images.

maxim-lobanov avatar maxim-lobanov commented on September 12, 2024

Hello!
Could you please check answer in #294? I believe it will resolve this issue too

from runner-images.

lol768 avatar lol768 commented on September 12, 2024

I think this should work out of the box @maxim-lobanov - is there a reason it can't?

from runner-images.

maxim-lobanov avatar maxim-lobanov commented on September 12, 2024

On my local box, MSBuild is available only from Visual Studio Command Prompt. It is not available from Command Line. So I believed that it is expected.

If it works for you locally, probably, it may depend on version of VS / .NET Framework. Do you have any documentation links to confirm that msbuild should be available outside Visual Studio Command Prompt?

from runner-images.

lol768 avatar lol768 commented on September 12, 2024

No, it's not based on documentation - rather than how I thought this would intuitively work. If I installed a package on any Linux distro and the executables weren't available in PATH afterwards, I'd consider the installation process broken... .NET Core does this properly, for instance.

Maybe my expectations are just not aligned with how this is supposed to work on Windows (where everything seems to be 10x more painful!).

from runner-images.

maxim-lobanov avatar maxim-lobanov commented on September 12, 2024

Hm, good point. I didn't consider that msbuild is on PATH for macOS / Ubuntu and available without Visual Studio Command Prompt. For macOS, for example, it comes from /Library/Frameworks/Mono.framework/Versions/Current/Commands/msbuild
In this case, probably, we should add it on PATH for Windows too.

@alepauly , @al-cheb , any thoughts?

from runner-images.

alepauly avatar alepauly commented on September 12, 2024

@maxim-lobanov @lol768 I wouldn't expect it to be in the PATH on Windows and instead I would want to use the Dev Command Prompt bat to set it up (or maybe a platform agnostic action, say setup-msbuild?). One thing to consider is that it's possible that there are differences between dotnet core MSBuild and the one packaged with Visual Studio. It could be confusing to know which one is getting used. I rather we don't add too many things to the PATH since it can create problems going forward.

from runner-images.

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.