![]() So you should run MSBuild to get what you want so far. Nuget just determines the corresponding information which is like making a plan ,the specific action is performed by MSBuild, including reference, restore, copy, and so on. But nuget passes these info into MSBuild. After that, you will see them in bin\Debug folder.Īctually, nuget does the job which decides which corresponding dependencies to copy. When you use nuget.exe install such nuget package in your project,then use Build tool to execute such command msbuild xxx\xxx\xxx.csproj -t:build to build project. Since it can be installed separately from VS and is lightweight, many developers now use this to build projects on production servers. Under All Downloads-> Tools for Visual Studio 2019-> Build Tool for Visual Studio 2019 You can install Build Tool for Visual Studio 2019. Since VS2017, MSBuild can be installed separately without VS IDE. ![]() After that, please execute Build to check whether the files exists. ![]() To prove it, you can create a new empty project and then install this nuget package, then check whether the files are under bin\Debug. When you click build (actually it calls MSBuild.exe), the dependency DLLs of nuget package will be copied to your output folder. In VS IDE, MSBuild is responsible for this operation. The actual content copy operation is purely a job of MSBuild. Nuget is just responsible for downloading the package to your local and then associating it with your project. In fact, MSBuild( MSBuild.exe) is an executable with a vs development environment. I think you have some misunderstanding about this issue and I am afraid what you want can not be implemented by nuget.Īctually, it is MSBuild job to copy related nuget package's content into bin\Debug. Is there a way to “install” nuget package like the way Visual Studio ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |