nuget-package

NuGet: How can I change property of files with Install.ps1 file?

不羁岁月 提交于 2019-12-31 08:37:33
问题 I am creating NuGet package and for that I have created Nuspec manifest file. In content folder I have two files, test.exe and test.config . Now I would like to change property "Copy To Output Directory" of these the files to "Copy Always" in project, when any user installs this package. I found related question NuGet how to apply properties to files, that shows can do this using PowerShell install.ps1 script, but I have no idea how to create that file. 回答1: Your install.ps1 file should look

Visual Studio 2015 Error. The default XML namespace of the project must be the MSBuild XML namespace

。_饼干妹妹 提交于 2019-12-31 05:28:06
问题 (Let me preface the question with Yes, I have seen similar questions, but not exactly my scenario.) My environment is Microsoft Visual Studio Professional 2015 (version 14.0.25431.01 Update 3) My actions I create a new C# Class Library Project; (Ok) It defaults to .NET Fx 4.5.1, I change it to the latest on my machine Fx 4.7.2; (Ok) I Build / Compile it; (Ok) I go to the Manage NuGet Packages menu, search for EntityFramework, and try to install the latest; it tells me it is EF 6.3.(Ok) Hit

MSBuild NuGet.targets ,Nuget.exe : Unable to read package from path 'blah.nupkg' error

萝らか妹 提交于 2019-12-30 17:22:15
问题 I am getting these errors when running a MSBuild build step that builds a web project in TeamCity and I have setup my Nuget targets file PackageSource to point to a local Nuget server e.g. PackageSource Include="http://mylocaldevurl/nuget/Packages" . The build runs and produces errors of the form e.g. Exec] F:\TeamCity\buildAgent\work\blahblah.nuget\NuGet.targets(87, 9): Unable to read package from path 'Lucene.Net.3.0.3.nupkg'. Whats is strange other packages are downloaded fine to the

NuGet: NHibernate, Castle.Core 3.0 and where is ProxyFactoryFactory?

柔情痞子 提交于 2019-12-28 13:57:20
问题 I installed with NuGet the packages NHibernate and Castle.Core 3.0 for a new project. Usually we copied around the dlls manually; it is the first time I do that with NuGet. Now I can't find out how to configure the ProxyFactoryFactory, or let's say, I can't find it. I referenced NHibernate and Castle.Core (the only dll I could find in the Castle.Core - package) within the project, and configured the following: <property name="proxyfactory.factory_class"> NHibernate.ByteCode.Castle

NuGet: NHibernate, Castle.Core 3.0 and where is ProxyFactoryFactory?

无人久伴 提交于 2019-12-28 13:56:39
问题 I installed with NuGet the packages NHibernate and Castle.Core 3.0 for a new project. Usually we copied around the dlls manually; it is the first time I do that with NuGet. Now I can't find out how to configure the ProxyFactoryFactory, or let's say, I can't find it. I referenced NHibernate and Castle.Core (the only dll I could find in the Castle.Core - package) within the project, and configured the following: <property name="proxyfactory.factory_class"> NHibernate.ByteCode.Castle

Build NuGet Package automatically including referenced dependencies

久未见 提交于 2019-12-28 04:51:29
问题 I want to run a local/internal NuGet repository. I think I've figured out how to "reuse" existing NuGet packages by including them in a dummy project using NuGet and scanning the package file to grab my locally-cached .nupkg files, but... How do you create a nuget package ( .nupkg ) from a project, automatically including all dll dependencies and not just those grabbed via NuGet? Specifically: Create a solution Add a new Project Add references to various .dll files/other projects <-- this is

JSON.NET Serializer for WCF REST Services

寵の児 提交于 2019-12-28 02:59:25
问题 I am trying to use the NETFx Json.NET MediaTypeFormatter nuget package to swap out the default DataContractJsonSerializer in my WCF REST service (4.0 framework). I downloaded the package in my project and added the following lines of code in the Global.asax file. void Application_Start(object sender, EventArgs e) { RegisterRoutes(); // Create Json.Net formatter serializing DateTime using the ISO 8601 format var serializerSettings = new JsonSerializerSettings(); serializerSettings.Converters

Trying to resolve dependencies: Changing .NET Standard Library to NET Core - Microsoft.Extensions.Primitives

醉酒当歌 提交于 2019-12-25 07:50:03
问题 I am running Visual Studio 2015 Update 3. I am trying to use Redis Cache for .Net core applications. Since, the developed package is targeting .Net Standard Library. I downloaded the code from github and trying to change the dependecies my self. Here are the projects: First, I am trying to chage the Abstractions Class Library to target . Net Core , then i tried to add the Microsoft.Extensions.Primitives , Since the version 1 does not support .NET Core. I added the final pre package: Install

Creating NuGet package with reference to a non-NuGet reference

巧了我就是萌 提交于 2019-12-25 06:26:42
问题 I am creating a Class Library that builds 2 dlls into a NuGet package. It has a few references to dlls that currently do not have a NuGet package to be referenced from. How should I make my NuGet package dependent on those dlls that are currently unavailable via NuGet? If I bundle them up as well, what happens if a project that already has a reference to these dlls, pulls down my NuGet package, what happens to that reference? Should I just create a NuGet package for each dll reference and

Xamarin.Forms Package Erorr

我的未来我决定 提交于 2019-12-25 05:24:10
问题 Has anyone encountered this error when adding the Xamarin.Forms package through the "Add NuGet package" option? PS I'm using Xamarin Studio and I only encounter this with Windows. Error message is: Could not install package 'Xamarin.Forms 2.2.0.31'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5,Profile=Profile78', but the package does not contain any assembly references or content files that are compatible with that framework. Here is the