nuget-package

System.IO.FileLoadException: Could not load file or assembly Log4net

我只是一个虾纸丫 提交于 2020-01-02 04:03:10
问题 I added an existing project to my solution. When I run all unit tests with MSTest runner, I get the following error on a couple of tests: Message: Test method soandso threw exception: System.IO.FileLoadException: Could not load file or assembly 'log4net, Version 1.2.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a' or one of it's dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT:0x80131040) I know others have had the

System.IO.FileLoadException: Could not load file or assembly Log4net

允我心安 提交于 2020-01-02 04:03:07
问题 I added an existing project to my solution. When I run all unit tests with MSTest runner, I get the following error on a couple of tests: Message: Test method soandso threw exception: System.IO.FileLoadException: Could not load file or assembly 'log4net, Version 1.2.12.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a' or one of it's dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT:0x80131040) I know others have had the

NuGet Packaging and referencing dll's

会有一股神秘感。 提交于 2020-01-01 10:08:06
问题 Background: I have two assemblies called "A" and "B". ""A" references "B". "A" also references some additional dll's (Microsoft.Enterprise Library.Data and Microsoft Enterprise Library.Common ) that I think should be packaged in the nupkg. I believe my nupkg package should contain the assembly output from "A", "B" and the two "Microsoft Enterprise" assemblies so that when someone installs my package it will give them a direct reference to the Assembly "A" and the other three assemblies would

NuGet Packaging and referencing dll's

纵然是瞬间 提交于 2020-01-01 10:07:06
问题 Background: I have two assemblies called "A" and "B". ""A" references "B". "A" also references some additional dll's (Microsoft.Enterprise Library.Data and Microsoft Enterprise Library.Common ) that I think should be packaged in the nupkg. I believe my nupkg package should contain the assembly output from "A", "B" and the two "Microsoft Enterprise" assemblies so that when someone installs my package it will give them a direct reference to the Assembly "A" and the other three assemblies would

Could not load file or assembly 'System.Web.Optimization, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

走远了吗. 提交于 2020-01-01 06:35:08
问题 I keep getting this error although I already installed the nuget packet for Microsoft.AspNet.Web.Optimization... Could not load file or assembly 'System.Web.Optimization, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' Apparently, the one in the Nuget is a v.1.13 while the one referenced in my solution somewhere is v.1.0.0 ...Problem is, I can't find the way to match these two. I can't find the install for v.1.0.0 or the way to delete or override the 1.0.0 for the 1.1.3.

Transforming .csproj using nuget package

我是研究僧i 提交于 2020-01-01 05:29:05
问题 I know it is possible to transform source code files and config files using a custom Nuget package. Unfortunately I cannot find anywhere on how to be able to append to or change a .csproj file. Is this possible? 回答1: The only file modifications that are directly supported in NuGet without resorting to PowerShell are: web.config and app.config transforms. You can add files from your NuGet package into the project, but they will overwrite the existing files. The files added can also be

How to open readme URL for NuGet package?

白昼怎懂夜的黑 提交于 2020-01-01 05:17:27
问题 In NuGet, you can put a readme.txt in the root of the pacakge and it will open automatically. However, I have seen NuGet packages open a URL upon installation. How is this done (you can see an example with this NuGet package). 回答1: It is done through a PowerShell script in the package's tools\install.ps1 file. Download the Glimpse package package, extract the archive, look for the tools\install.ps1 file. At the bottom, you'll find the following script which performs the navigation: $DTE

Get NuGet package folder in MSBuild

孤人 提交于 2020-01-01 04:24:04
问题 I want to call executable tools like NUnit which I manage via NuGet in MSBuild: <Target Name="Test"> <CreateItem Include="$(BuildCompileDirectory)\*.Tests.*dll"> <Output TaskParameter="Include" ItemName="TestAssemblies" /> </CreateItem> <NUnit Assemblies="@(TestAssemblies)" ToolPath="$(PackagesDirectory)\NUnit.2.5.10.11092\tools" WorkingDirectory="$(BuildCompileDirectory)" OutputXmlFile="$(BuildDirectory)\$(SolutionName).Tests.xml" /> </Target> The problem is that the folder of a NuGet

.NET 4.5.1 Preview Support in Visual Studio 2012

若如初见. 提交于 2019-12-31 22:28:10
问题 First let me add some context to error I get, I have installed .NET 4.5.1 Preview and first thing that I noticed in VS 2012 is that .NET 4.5.1 isn't listed in available frameworks. I'm not sure if this is correct behavior because this is just an upgrade to 4.5 so I guess VS 2012 should list it. Further more when I installed a VS 2013 Preview, upgraded my project to .NET 4.5.1 and opened the solution in VS 2012 new .NET version reappeared so I'm not sure if this is a bug in VS 2012 or not ? Ok

Git submodules vs Nuget packages

佐手、 提交于 2019-12-31 10:33:13
问题 Our team has experimented with git submodules for some core CRUD functionality shared by most of our products. We have also successfully used Nuget packages (self-hosted now) for some common utilities. Our core functionality changes often enough that keeping submodules properly committed is proving to be more of a chore that we expected. I am considering moving the core functionality from a submodule to a Nuget package but am wondering if the frequent updates to the packages would be even