Coder Social home page Coder Social logo

Comments (4)

pavlejosipovic avatar pavlejosipovic commented on July 19, 2024

I had this issue as well, configuring NuGet packages from VS UI sometimes doesn't do the right thing.
Try fixing Nuget packages manually, you can just c/p from existing projects.

from caffe.

7oud avatar 7oud commented on July 19, 2024

Thanks! could u tell how to fix nuget, which files can be edit manually?
I want to add a new dll project, I am afraid copy from existing exe project may make some other problems

from caffe.

mnidza avatar mnidza commented on July 19, 2024

You should add two lines to the .vcxproj file for your project

<Import Project="..\..\..\NugetPackages\hdf5-v120-complete.1.8.15\build\native\hdf5-v120.targets" Condition="Exists('..\..\..\NugetPackages\hdf5-v120-complete.1.8.15\build\native\hdf5-v120.targets')" />

and

<Error Condition="!Exists('..\..\..\NugetPackages\hdf5-v120-complete.1.8.15\build\native\hdf5-v120.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\NugetPackages\hdf5-v120-complete.1.8.15\build\native\hdf5-v120.targets'))" />

These should be added to the ImportGroup and Target elements, respectively, probably close to the end of the file. Just look for other similar lines (coming from other NuGet packages that included successfully), or use e.g. caffe.vcxproj as an example.

from caffe.

7oud avatar 7oud commented on July 19, 2024

@mnidza It is very helpful, thanks!

from caffe.

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.