nuget

Local nuget server: 405 Method not allowed

这一生的挚爱 提交于 2021-01-27 18:21:15
问题 I've configured a local nuget server as described here: http://docs.nuget.org/docs/creating-packages/hosting-your-own-nuget-feeds I can browse to it and look at the feed. But I can not publish packages to it. I just get error 405 all the time. I've made sure that the App Pool account has Change privileges for the Packages folder. My config: <appSettings> <add key="requireApiKey" value="true" /> <add key="apiKey" value="XXXXX" /> <add key="packagesPath" value="c:\projects\nuget\Packages" /> <

Local nuget server: 405 Method not allowed

会有一股神秘感。 提交于 2021-01-27 17:56:17
问题 I've configured a local nuget server as described here: http://docs.nuget.org/docs/creating-packages/hosting-your-own-nuget-feeds I can browse to it and look at the feed. But I can not publish packages to it. I just get error 405 all the time. I've made sure that the App Pool account has Change privileges for the Packages folder. My config: <appSettings> <add key="requireApiKey" value="true" /> <add key="apiKey" value="XXXXX" /> <add key="packagesPath" value="c:\projects\nuget\Packages" /> <

Code Analysis is not working with ruleset from nuget package (from .props)

五迷三道 提交于 2021-01-27 13:57:15
问题 I'm trying to use custom ruleset file form our nuget package. I've added to the build folder of the package .props file: <Project> <PropertyGroup> <CodeAnalysisRuleSet> $(MSBuildThisFileDirectory)..\My.Shared.ruleset </CodeAnalysisRuleSet> <RunCodeAnalysis>true</RunCodeAnalysis> </PropertyGroup> </Project> Rule set file is in the package root folder, the paths are correct, it's adding import of the .props file into csproj file. <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com

Including an unmanaged native library files to nuget output directory

懵懂的女人 提交于 2021-01-27 12:59:27
问题 unamanged shared object (.so file) does not copy to the output directory: I have .netstandard 2 project that wraps a c++ library(lets call the project wrap.csproj). That project depends on shared object (libgdal.so). I want to use this project as a nuget, and therefor, the projects that will reference my nuget should have the wrap.dll and the libgdal.so in the build/publish folder. I packed this project as nuget. but projects( dotnet core) that reference this nuget does not get the libgdal.so

How can I use msbuild without project.assets.json or nuget restore?

两盒软妹~` 提交于 2021-01-27 06:19:08
问题 I have a .Net Standard project in a solution and I want msbuild to build it on our build server. If I do not run "nuget restore" first, I get the error "project.assets.json' not found. Run a NuGet package restore". I already have all of the necessary NuGet packages in the "packages" folder at the solution level. I would like to indicate somehow that msbuild should just use the files in the local "packages" folder instead of trying to re-download the files. How can I do this? Thank you. 回答1:

Package dependancy resolution in NuGet and naming conflicts

余生颓废 提交于 2021-01-27 05:53:22
问题 On my team at work we rely on two NuGet feeds: the offical one from NuGet.org for public packages and a folder on our file server for internal packages. This has worked well for us, but I think we have a potential problem. It looks like NuGet resolves dependencies based on package name and version number. With only one feed in play, this doesn't seem like a problem. With more than one feed, there's a risk of a name conflict. Based on NuGet's resolution rules, it looks like it will pick the

Package dependancy resolution in NuGet and naming conflicts

…衆ロ難τιáo~ 提交于 2021-01-27 05:52:37
问题 On my team at work we rely on two NuGet feeds: the offical one from NuGet.org for public packages and a folder on our file server for internal packages. This has worked well for us, but I think we have a potential problem. It looks like NuGet resolves dependencies based on package name and version number. With only one feed in play, this doesn't seem like a problem. With more than one feed, there's a risk of a name conflict. Based on NuGet's resolution rules, it looks like it will pick the

Deploy EXE provided by Nuget package as a component of a ClickOnce installation

安稳与你 提交于 2021-01-27 05:30:31
问题 I have a WPF application that makes use of Selenium to automate internet explorer instances. The application is deployed to users as a click-once installation. It makes use of the Selenium.WebDriver.IEDriver nuget package, which provides IEDriverServer.exe to the bin directory automatically. This exe is not an entry in the project, but is copied there automatically as part of the build process. In order for my application to run on computers it is installed on, this exe needs to be included

Deploy EXE provided by Nuget package as a component of a ClickOnce installation

一曲冷凌霜 提交于 2021-01-27 05:30:09
问题 I have a WPF application that makes use of Selenium to automate internet explorer instances. The application is deployed to users as a click-once installation. It makes use of the Selenium.WebDriver.IEDriver nuget package, which provides IEDriverServer.exe to the bin directory automatically. This exe is not an entry in the project, but is copied there automatically as part of the build process. In order for my application to run on computers it is installed on, this exe needs to be included

Where is Nuget 4 installed

无人久伴 提交于 2021-01-27 01:38:36
问题 Visual Studio 2017 comes with Nuget 4.0.0. However, it's not placed on the path. Where can I find the nuget executable to use the CLI? 回答1: Visual Studio 2017 doesn't use NuGet.exe but instead uses an extension of NuGet to achieve this. You should be able to find the extension in this path: C:\Program Files (x86)\Microsoft Visual Studio\2017\ <VSEdition> \Common7\IDE\CommonExtensions\Microsoft\NuGet ... where <VSEdition> is the version of Visual Studio being used, for example Community or