nuget-package

ccrewrite fails on the build machine due to nuget references having contract assemblies

橙三吉。 提交于 2019-12-24 01:54:35
问题 Here is the whole context: I build two nuget packages containing A.nupkg: A.dll, A.Contracts.dll B.nupkg: B.dll, B.Contracts.dll; B depends on A I create a new project and solution C depending on A and B, and set "Contract Reference Assembly" to Build. Locally, everything compiles just fine. However, on the build server (MSBuild 2012.2), an exception is thrown from ccrewrite, saying ccrewrite : error : Rewrite aborted due to metadata errors. Check output window . Setting the logging to

Kendo UI Server side wrappers

北战南征 提交于 2019-12-23 19:16:29
问题 Is there a nuget package for the Kendo UI server side wrappers? I know there is a nuget package that installs jquery + all the kendo js files but it doesn't include the kendo.mvc.dll which is what I care about. 回答1: Telerik is not planning to create a Nuget package for Kendo UI server side wrappers. Here is the discussion topic dated back in July 2012: http://www.kendoui.com/forums/mvc/general-discussions/nuget-install-for-kendoui-mvc.aspx 回答2: We (Telerik) may create a Nuget package for

NuGet - Can not find 'Add Library Package Reference…'

纵饮孤独 提交于 2019-12-23 15:15:00
问题 I am using Visual Studio 2010 SP1 with MVC3 installed. As I am in the process of learning NuGet basics, I was going through this tutorial http://maleevdimka.com/post/NuGet-Part-1.aspx I should go for 'Add Library Package Reference...' option to add default available feeds. However when I go to my web application project in VS 2010, I see something else - 'Manage NuGet Packages...'. If I click this, I have a dialog box with available online packages each with Install button. Is 'Add Library

error while trying to push nuget package from VSTS

匆匆过客 提交于 2019-12-23 12:58:43
问题 I added dotnet task (.Net Core) to do a nuget push. In the Nuget server section it asked me to use create a new Nuget Connection. I went with the API Key option and game in connection name,Feed URL, and API Key. when I run this step I get the following error Error: DotNetCore currently does not support using an encrypted Api Key. is this a limitation or am i doing something wrong? Please note from my desktop I am about to create package and push the package using apikey. 回答1: Pushing package

NuGet restoring PostSharp package before the build begins

此生再无相见时 提交于 2019-12-23 09:21:03
问题 I am using PostSharp and I have the following target description in my project file: <Target Name="EnsurePostSharpImported" BeforeTargets="BeforeBuild" Condition="'$(PostSharp30Imported)' == ''"> <Error Condition="!Exists('..\..\packages\PostSharp.3.1.33\tools\PostSharp.targets')" Text="This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://www.postsharp.net/links/nuget-restore." /> <Error

What is the difference between MvcContrib.MVC3-ci and Mvc.Contrib NuGet Packages?

大城市里の小女人 提交于 2019-12-23 08:54:15
问题 What is the difference between MvcContrib.MVC3-ci and Mvc.Contrib NuGet Packages? I see they have different dependencies -ci has many more downloads. I'm assuming I want -ci for my MVC3 project, but how do I figure that out? What does the -ci mean? 回答1: From what I gather, MVCContrib.MVC3-ci is the latest version of the MVC3 package and MvcContrib is the old name for the MVC2 package. If you visit the codeplex site then you will see the release history for MVC2 (v 2.0.95.0 & v2.0.96.0) and

Copy files from a subfolder to root in nuspec

ぃ、小莉子 提交于 2019-12-23 07:27:52
问题 I'm trying to copy a bunch of files from a specific folder into the root of a nuget package. Here's how it looks in my nuspec file: <files> <file src="dist/product1/**/*.*" /> </files> I want the files under dist/product1 be copied to root of nuget package but instead all files go to dist/product1 folder in nuget file, meaning it preserves the folder structure. I tried many variations. Any ideas? 回答1: Using NuGet Package Explorer, I found out that I can use the following syntax. <files> <file

Multi-Project Nuget Issues

爱⌒轻易说出口 提交于 2019-12-23 03:22:51
问题 I have a multi-project ASP.NET 4.0 Web Forms solution. Initially I created a project package consisting of static files: master, css, images, etc. I have since upgraded to Nuget 1.4 to avail of a solution project (so I don't have to manually update each project). I planned to uninstall existing project package, then create and install a solution package containing the same common files. After running Uninstall-Package MyProjectPackage, I noticed that there are still Nuget-related files in my

Visual Studio 2017 Nuget.config at solution folder not recognized

会有一股神秘感。 提交于 2019-12-22 11:37:24
问题 I'm having issue with visual studio 2017, where new solution keeps referencing the Nuget.config file in unexpected location in 'C:\Users\yopa\AppData\Roaming\NuGet\Nuget.config'. I've added '/.nuget/Nuget.config' file to my solutions folder. However, the solution is still referencing the nuget configuration file in the 'C:\', and the nuget packages are being restored in 'C:\' package folder as well. How do I configure my solution to honour package.config file in its directory? I've tried

The content folder in my nuget package isn't adding the files to the root when installing the package

六眼飞鱼酱① 提交于 2019-12-22 08:36:51
问题 I am running .net core 1.1 and nuget 3.5. Here is my nuspec: <?xml version="1.0"?> <package > <metadata> <id>ClassLibrary1</id> <version>1.0.0.4</version> <title>Class Library Test Content</title> <authors>name</authors> <owners>name</owners> <requireLicenseAcceptance>false</requireLicenseAcceptance> <description>package to test config file transfer</description> <copyright>Copyright 2017</copyright> <tags>TagUno TagDos</tags> <contentFiles> <files include="appsettings.json" buildAction=