nuget

Consuming nuget package containing .targets file via PackageReference

你离开我真会死。 提交于 2020-07-23 04:51:54
问题 I have .NET452 project - lets call it Consumer.csproj that I want to consume nuget lets call it SharedTargets that contained some custom targets files ( SharedTargets.targets ) from msbuild. I'm using PackageReference format and now (compared to what it used to be) nuget packages are being restored to shared folder (%userprofile%.nuget\packages), and I'm not sure if it is good idea to reference it via that (doesn't feel right). Eg: <PackageReference Include="SharedTargets"> <Version>1.0<

Consuming nuget package containing .targets file via PackageReference

佐手、 提交于 2020-07-23 04:51:07
问题 I have .NET452 project - lets call it Consumer.csproj that I want to consume nuget lets call it SharedTargets that contained some custom targets files ( SharedTargets.targets ) from msbuild. I'm using PackageReference format and now (compared to what it used to be) nuget packages are being restored to shared folder (%userprofile%.nuget\packages), and I'm not sure if it is good idea to reference it via that (doesn't feel right). Eg: <PackageReference Include="SharedTargets"> <Version>1.0<

Unable to build nuget packages during Jenkins build

做~自己de王妃 提交于 2020-07-22 05:02:07
问题 I am trying to build a .Net WEB API (https://github.com/NaveeenSemwal/jenkinsapi.git) using Jenkins freestyle project but i am getting error of nuget packages while building job in Jenkins. I have used VS 2019 community edition to create .net web api. I have configured MSBuild in Jenkins as below : Here i have configured git repository: And this is how i am using MSBuild in Jenkins's Job : Please find the error which i am getting while during build as below : I have also seen in the workspace

How do I fix this NuGet Restart loop in Visual Studio 2017?

感情迁移 提交于 2020-07-21 06:25:53
问题 The NuGet prompt, "Multiple packages failed to uninstall. Restart Visual Studio to finish the process," appears repeatedly in Visual Studio 2017 no matter how many times I restart the application. I'm selecting Tools > NuGet Package Manager > Manage NuGet Packages For Solution. Then this dialog appears. We have a solution in VS 2017 with multiple NuGet package references which will not resolve. A colleague added these references, but when I load the solution they show up with the yellow

.NET Analyzer: Package Version vs Assembly Version

天涯浪子 提交于 2020-07-18 17:49:23
问题 As you can see in the following picture when you create a project of type Analyzer with Code Fix (.NET Standard) using VS 2017, in the properties tab of the project there is package version, assembly version and assembly file version. Are those 3 versions related together or not? Also, as I make changes in the project how am I supposed to change the versions number? For instance, if I fix a bug, if I add a new rule, etc. 回答1: Are those 3 versions related together or not? Also, as I make

.NET Analyzer: Package Version vs Assembly Version

假如想象 提交于 2020-07-18 17:49:17
问题 As you can see in the following picture when you create a project of type Analyzer with Code Fix (.NET Standard) using VS 2017, in the properties tab of the project there is package version, assembly version and assembly file version. Are those 3 versions related together or not? Also, as I make changes in the project how am I supposed to change the versions number? For instance, if I fix a bug, if I add a new rule, etc. 回答1: Are those 3 versions related together or not? Also, as I make

Scripted way to add nuget package source

亡梦爱人 提交于 2020-07-17 10:04:21
问题 We want to start a company nuget package repository. Is there a way to add a package source through command line so we can configure our new package source through a setup or something? We basically don't want to go Tools - Options - Package Manager - Package Sources - Plus button - add name and source on every developer machine in the company. 回答1: The package sources are stored in NuGet.config under the user's profile or system wide in ProgramData: %AppData%\NuGet\NuGet.config %ProgramData%

PowerShell Installing NuGet, says unable to access internet, but I actually can

淺唱寂寞╮ 提交于 2020-07-17 03:26:02
问题 I followed the steps mentioned in Using PowerShell Behind a Proxy to configure my proxy server. netsh winhttp set proxy "[IP]:[Port]" $Wcl = New-Object System.Net.WebClient $Creds = Get-Credential $Wcl.Proxy.Credentials = $Creds A dialog popped up to collect my credential on the third line. Then I tried to install NuGet: PS C:\Users\Administrator> Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/ ?LinkID

PowerShell Installing NuGet, says unable to access internet, but I actually can

会有一股神秘感。 提交于 2020-07-17 03:24:49
问题 I followed the steps mentioned in Using PowerShell Behind a Proxy to configure my proxy server. netsh winhttp set proxy "[IP]:[Port]" $Wcl = New-Object System.Net.WebClient $Creds = Get-Credential $Wcl.Proxy.Credentials = $Creds A dialog popped up to collect my credential on the third line. Then I tried to install NuGet: PS C:\Users\Administrator> Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/ ?LinkID

Projects with same nuget package referencing different version of assembly

不打扰是莪最后的温柔 提交于 2020-07-16 06:18:30
问题 I am going mad here, and I am hoping that it's something that I've simply overlooked. I am experiencing intermittent FileLoadExceptions , which are showing up after deployments even if the code change between deployments doesn't change any assembly references . Looking at the most recent example of this, I am seeing a FileLoadException due to System.IO.Compression , version 4.2.0.0 not being found. In all cases, we are referencing the System.IO.Compression nuget package, version 4.3.0 .