vb.net - Visual Studio 2013 - the system cannot find reference specified -


i googled , checked existing post here didn't find relevant post here question.

i using vs2013 primium edition. have few class library projects(all using framework 4.0). when these class libraries become part of web solution, reference paths in class library shown , project compiles fine shown below. when class library part of web solution

however, same class library project doesn't load reference paths when becomes part of windows service solution.

when project loaded in windows service

i doubled checked projects using same framework version. idea whats going wrong?

finally able resolve it.

after recreated library project inside windows service solution described here.

i opened same library project in web solution. somehow, web solution adds nuget restore tags in library project file.

<restorepackages>true</restorepackages>   <import project="$(solutiondir)\.nuget\nuget.targets" />   <target name="ensurenugetpackagebuildimports" beforetargets="prepareforbuild">   <propertygroup>   <errortext>this project references nuget package(s) missing on computer. enable nuget package restore download them.  more information, see http://go.microsoft.com/fwlink/?linkid=322105. missing file {0}.</errortext> </propertygroup> <error condition="!exists('$(solutiondir)\.nuget\nuget.targets')" text="$([system.string]::format('$(errortext)', '$(solutiondir)\.nuget\nuget.targets'))" /> 

these tags causing trouble. once removed tags described here. fixed issue.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -