How do I reference instead of copy js files from a Nuget package at build time in TeamCity?

前端 未结 3 1896
迷失自我
迷失自我 2021-02-09 17:39

I\'ve got a packages.config file checked into source control. This specifies the exact version of the Nuget dependency I want. We have our own NuGet repository. We are creating

3条回答
  •  生来不讨喜
    2021-02-09 18:04

    If you are the owner of the package then you could use the nuget package i've created to be able to have a folder called "Linked" in the package and have a simple Install.ps1 and Uninstall.ps1 (one liners) to add every file in the nuget package's linked folder as existing to the project.

    https://github.com/baseclass/Contrib.Nuget#baseclasscontribnugetlinked

    I didn't try out how publication treats linked files, the problem is debugging the Project, as the JavaScript files will be missing in the directories.

    If you are using git as source control you could try my nuget package which ignores all the nuget content files and automatically restores them before building.

    Step by step example in my blog: http://www.baseclass.ch/blog/Lists/Beitraege/Post.aspx?ID=9&mobile=0

提交回复
热议问题