Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

Edited Issue: Hintpath is not set properly for packages installed via project template [2917]

$
0
0
Note: This repros only when a project is created programatically. Hence not a mainline scenario. Nevertheless, the hint path should be set properly irrespective of how the project gets created, since there could be bunch of scenarios where a project gets created through DTE. [ Even in our forums we see queries where user tries to add project as part of install.ps1 ..]<br /><br /><br />1. Create a MVC project template using DTE object model at C:\Temp folder.<br />Sample project attached.<br />2. In the resulting MVC project, packages that are part of project templates are installed properly in "packages" folder but the hint path is set according to the default project location [ which would be C:\Users\xxx\My Documents\Visual Studio 2012\Projects\..\Packages\]. Hence the references are unresolved resulting in build error.<br /><br /><br />3. In this case though the project gets created @ C:\Temp folder, but the hint path is set according to the default project location. [ which can be found @ Tools --> options--> ProjectsAndSolution -->Projects location]<br />4. For packages that are installed via package manager console post project creation, hint path is set properly.<br /><br />

Viewing all articles
Browse latest Browse all 7612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>