Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all 3170 articles
Browse latest View live

Could not list NuGet packages in Visual Studio 2017 when using Artifactory Nuget source

$
0
0

I have successfully published a Nuget package to Artifactory Nuget repository, but I got some problems as below:

  1. The package doesn't show up in Visual Studio 2017 Nuget Package Manager
  2. The Artifactoy doesn't display Nuget Package properties in Artifactory UI

I believe that nuspec file of the Nuget package cannot contain Chinese characters because once I remove Chinese characters everything is back to normal.

If I want to keep nuspec file contain Chinese characters, is there any way that Artifactory and VS 2017 could work fine?


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

$
0
0

(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

  1. I create a new C# Class Library Project; (Ok)
  2. It defaults to .NET Fx 4.5.1, I change it to the latest on my machine Fx 4.7.2; (Ok)
  3. I Build / Compile it; (Ok)
  4. 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)
  5. Hit the install button (ERROR - see message below)
  6. WTF (?) I've used this VS 2015 for 5 years (yes it is 2019 now) without fail, why fail now?

Output window

Attempting to gather dependency information for package 'EntityFramework.6.3.0' with respect to project 'SqliteLayer', targeting '.NETFramework,Version=v4.7.2'
Attempting to resolve dependencies for package 'EntityFramework.6.3.0' with DependencyBehavior 'Lowest'
Resolving actions to install package 'EntityFramework.6.3.0'
Resolved actions to install package 'EntityFramework.6.3.0'
Adding package 'EntityFramework.6.3.0' to folder 'C:\PROJS\test-proj-01\packages'
Added package 'EntityFramework.6.3.0' to folder 'C:\PROJS\test-proj-01\packages'
Install failed. Rolling back...
Package 'EntityFramework.6.3.0' does not exist in project 'MyProjName'
Removing package 'EntityFramework.6.3.0' from folder 'C:\PROJS\test-proj-01\packages'
Removed package 'EntityFramework.6.3.0' from folder 'C:\PROJS\test-proj-01\packages'
Microsoft.Build.Exceptions.InvalidProjectFileException: The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.  C:\PROJS\test-proj-01\packages\EntityFramework.6.3.0\build\EntityFramework.props
   at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args) ... etc etc.. etc... the rest I chopped off

What I think is happening:

Whoever prepared the NuGet EF 6.3 package has not tested it with VS2015 ? Any ideas on a solution, please.

Why can't I see the current path in the pormpt of the Visual Studio Package manager?

$
0
0

Id like to use that instead of having to open a new cmd prompt but I want to see the current path instead of 'PM>'

Created a NuGet pipeline in azure devops

$
0
0

I have created a NuGet pipeline as my build pipeline in my Azure devops. AM getting some error while building the pipeline

error message

pipeline

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

$
0
0

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.

Any help on this?

Any code you need to see, let me know and I'll update the question.

Trying to install microsoft.aspnet.web.optimization in ASP.NET MVC project getting error

$
0
0

I am trying to install microsoft.aspnet.web.optimization in an ASP.NET MVC project, but I'm getting this error:

Install-Package: An error occurred while retrieving package metadata for 'Dapper.1.60.6' from source
...ABC\packages.

where project name is ABC.

How to resolve this issue? Any idea would be appreciated.

Own Nuget Server - The V2 feed at '' returned an unexpected status code '404 Not Found'

$
0
0

I created my own Nuget Server following the documentation and I got it, but I cannot access the packages from Visual Studio 2019 Community Nuget Package Manager.

So, when I do it through a browser I get this, which seems fine: enter image description here

When I click on "here" to view the packages I see the test one I added, and if I click it I can even download it:

enter image description here

However, when I access by Visual Studio I get this:

enter image description here

The full error says:

[Nuget Server] The V2 feed at 'http://mywebsite.com/NugetServer/Packages/Search()?$filter=IsLatestVersion&searchTerm=''&targetFramework=''&includePrerelease=false&$skip=0&$top=26&semVerLevel=2.0.0' returned an unexpected status code '404 Not Found'. But I can't figure out why.

This is how I added it to the Nuget Manager:

enter image description here

This is the folder structure of the site: enter image description hereenter image description here

As you can see the package test.1.0.0.nupkg is where the NugetServer project told me to put it.

I tried several things:

  • Giving Everyone FullControl of the folder (because at the beginning I got 403 Forbiden instead of 404)

  • Changing the folder structure, puting the nupkg package inside a folder named nuget, put the whole Packages folder inside the nuget folder and other things I saw as solutions in other Stackoverflow threads.

  • Transforming everything to VB as this Stackoverflow thread suggested.

  • Changing IIS parameters

Nothing worked for me, so I need a bit of help to find the way.

Maybe I need something for the "Search()" to work? I'm lost.

If you need more info I can provide, just ask, please.

Controlling link order of libraries with NuGet packages in VisualStudio

$
0
0

I am building a C++ project with a locally supplied .lib and some NuGet libraries on Visual Studio 2019.

However the Nuget libraries always get linked first, and I need the local .lib to go first so the symbols are resolved correctly. How do I control the link order in Visual Studio?

I have attempted to use a Directory.Build.targets approach but it doesn't seem to know where the NuGet package versions and locations are. The Visual Studio linker seems to be told just fine, just does things in the wrong order.

I can write a batch file that works but it means hard-coding all the NuGet locations


the file @(ReferenceCopyLocalPath->; WithMetadatavalue('ReferenceSourceTarget', 'ProjectReference')-> to be packed was not found on disk

$
0
0

I am creating a nuget package using the pack command that is in dot net standard and its generating the following error:

the file @(ReferenceCopyLocalPath->; WithMetadatavalue('ReferenceSourceTarget',
 'ProjectReference')-> to be packed was not found on disk 

Below is my csproj file

<Project Sdk="Microsoft.NET.Sdk">    <PropertyGroup>
           <Version>1.4.3.8</Version>
           <PackageVersion>$(Version)</PackageVersion>
           <PackageOutputPath>..\build_output\packages</PackageOutputPath>
           <TargetFrameworks>net461;netstandard2.0;netcoreapp2.1;netcoreapp3.0;net462;net47;net471;net472;netstandard2.1</TargetFrameworks>
           <GeneratePackageOnBuild>false</GeneratePackageOnBuild>
           <AssemblyVersion>$(Version)</AssemblyVersion>
           <FileVersion>$(Version)</FileVersion>
           <IncludeSymbols>true</IncludeSymbols>
           <Authors>sn.synergy</Authors>
           <Company>Gyldendal™</Company>
           <PackageTags>Logger;Logging;Manager</PackageTags>
           <Copyright>© Gyldendal</Copyright>
           <PackageProjectUrl>https://gyldendaldenmark.visualstudio.com/Common
     Components/_git/logger</PackageProjectUrl>
           <RepositoryUrl>https://gyldendaldenmark.visualstudio.com/Common Components/_git/logger</RepositoryUrl>
           <RootNamespace>LoggingManager</RootNamespace>    </PropertyGroup>    <PropertyGroup
     Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
           <DefineConstants>DEBUG;TRACE</DefineConstants>
           <DebugType>full</DebugType>
           <DebugSymbols>true</DebugSymbols>    </PropertyGroup>    <ItemGroup>
           <None Include="NLog.config">
              <Pack>true</Pack>
           </None>    </ItemGroup>    <ItemGroup>
           <None Update="NLog.xsd">
              <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
           </None>    </ItemGroup>    <!--Common Package-->    <ItemGroup>
           <PackageReference Include="NLog" Version="4.6.7" />    </ItemGroup>    <!--Trageting .NET CORE (2.1, 3.0) && .NET STANDARD
     (2.0,2.1) -->    <ItemGroup
     Condition="$(TargetFramework.StartsWith('netcore')) OR
     $(TargetFramework.StartsWith('netstandard'))">
           <PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
           <PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.7" />
           <!--<PackageReference Include="Microsoft.AspNet.WebApi.Core" Version="5.2.7" />-->
           <PackageReference Include="NLog.Extensions.Logging" Version="1.6.1" />
           <PackageReference Include="NLog.WindowsEventLog" Version="4.6.7" />
           <PackageReference Include="System.Diagnostics.EventLog" Version="4.6.0" />
           <PackageReference Include="System.Configuration.ConfigurationManager" Version="4.6.0" />
           <PackageReference Include="System.Data.SqlClient" Version="4.7.0" />
           <PackageReference Include="System.Linq" Version="4.3.0" />
           <PackageReference Include="Microsoft.Win32.Registry" Version="4.6.0" />    </ItemGroup>    <!--Targeting .NET FRAMEWORK
     (4.6.1 4.6.2)  -->    <ItemGroup Condition="'$(TargetFramework)' ==
     'net461' OR '$(TargetFramework)' == 'net462'">
           <PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
           <PackageReference Include="Microsoft.AspNet.WebApi.Client" version="5.2.3" />
           <PackageReference Include="Microsoft.AspNet.WebApi.Core" version="5.2.3" />
           <PackageReference Include="NLog.Extensions.Logging" Version="1.5.4" />
           <PackageReference Include="NLog.WindowsEventLog" Version="4.6.7" />
           <PackageReference Include="System.Diagnostics.EventLog" Version="4.5.0" />
           <PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0" />
           <PackageReference Include="System.Data.SqlClient" Version="4.6.1" />
           <PackageReference Include="System.Linq" Version="4.3.0" />
           <PackageReference Include="Microsoft.Win32.Registry" Version="4.5.0" />    </ItemGroup>    <!--Targeting .NET FRAMEWORK
     (4.7, 4.7.1, 4.7.2)-->    <ItemGroup Condition="'$(TargetFramework)'
     == 'net47' OR '$(TargetFramework)' == 'net471' OR '$(TargetFramework)' == 'net472'">
           <PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
           <PackageReference Include="Microsoft.AspNet.WebApi.Client" version="5.2.3" />
           <PackageReference Include="Microsoft.AspNet.WebApi.Core" version="5.2.3" />
           <PackageReference Include="NLog.Extensions.Logging" Version="1.5.4" />
           <PackageReference Include="NLog.WindowsEventLog" Version="4.6.7" />
           <PackageReference Include="System.Diagnostics.EventLog" Version="4.5.0" />
           <PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0" />
           <PackageReference Include="System.Data.SqlClient" Version="4.6.1" />
           <PackageReference Include="System.Linq" Version="4.3.0" />
           <PackageReference Include="Microsoft.Win32.Registry" Version="4.5.0" />    </ItemGroup>    <ItemGroup>
           <Folder Include="Properties\" />    </ItemGroup>    <ItemGroup>
           <ProjectReference Include="..\LoggingManager.Nlog.RabbitMQ.Target\LoggingManager.Nlog.RabbitMQ.Target.csproj">
              <PrivateAssets>all</PrivateAssets>
           </ProjectReference>    </ItemGroup>    <PropertyGroup>
           <TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
           <!-- include PDBs in the NuGet package -->
           <AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
     </PropertyGroup>    <Target Name="CopyProjectReferencesToPackage"
     DependsOnTargets="ResolveReferences">
           <ItemGroup>
              <BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->;WithMetadataValue('ReferenceSourceTarget',
     'ProjectReference')->;WithMetadataValue('PrivateAssets', 'all'))" />
           </ItemGroup>    </Target>    <ItemGroup>
           <Content Include="NLog.config">
              <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
           </Content>    </ItemGroup>    <Target Name="PostBuild" AfterTargets="pack">
           <Exec Command="nuget push &quot;$(PackageOutputPath)\$(PackageId).$(PackageVersion).nupkg&quot;
     -ApiKey 24FCB347-75E6-41D6-BF80-E49CB142C092 -Source &quot;https://gyldendalnugetserver.azurewebsites.net/nuget&quot;
     -ConfigFile &quot;..\.nuget\nuget.config&quot;&#xD;&#xA;nuget push &quot;$(PackageOutputPath)\$(PackageId).$(PackageVersion).symbols.nupkg&quot;
     -ApiKey 24FCB347-75E6-41D6-BF80-E49CB142C092 -Source &quot;https://gyldendalnugetserver.azurewebsites.net/nuget&quot;
     -ConfigFile &quot;..\.nuget\nuget.config&quot;&#xD;&#xA;Exit /B 0&#xD;&#xA;" />    </Target> </Project>

How to create a mvc nuget package, that contains logic (controller-like)

$
0
0

I would like to create a nuget package for ASP.NET MVC (and ASP.NET Core MVC) applications.

The result should be a package, that you only need to activate via middleware like:

app.UseXyz()

and that reacts to a specific route ie URL:PORT/logtrace.

And I already created a middleware component that can return a web response to a route, but I can only work with basic httprequests inside of the middleware.

Since the logic, I want to program is more complex, I would need something like MVC controllers to utilize POST/GET requests and views.

Can I somehow use the MVC pattern inside an Owin middleware? Or is there even an easier way that I could not come up with, for creating a nuget package, that handles specific routes with controllers/views?

Package created with "mythical" dependency on a lower package/project reference

$
0
0

Some backstory: we have a single solution in a single repo that allows us to publish multiple packages at a time. This is to maintain rapid development instead of having the developer bounce around many repos, sapping productivity.

Each of the projects represents a NuGet package (.NET Core based), and we use the modern .csproj way of defining the packages. Dependent NuGet packages do not reference dependencies via <PackageReference> in the .csproj; instead they reference via the usual <ProjectReference>.

Let's say I have package A that depends on B via a project reference, and the stated <PackageVersion> of B is 2.0. When the package for A is published, the NuGet feed will state that A depends on version >= 2.0.

Where/how did this NuGet dependency get created during the pack/publish process when the original Adid not have a package reference at all to B? Our pipelines allow us to build individual packages or all of them at once. Does the project reference imply a package dependency? Is that true?

Manually loading of assemblies and dependencies at runtime (nuget dependencies & FileNotFoundException)

$
0
0

I currently have an issue with loading assemblies at runtime using Assembly.LoadFrom(String). While the specified assembly is loaded just fine, referenced third-party assemblies (e.g. nuget packages) are not loaded when the targeted framework is either netcoreapp or netstandard.

To figure out the problem i have created a simple solution consisting of three projects. Each project contains exactly one class. I'm using Newtonsoft.Json as a nuget example here but it could be any other assembly.

ClassLibrary0.csproj

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFrameworks>net20;netstandard1.0</TargetFrameworks>
  </PropertyGroup>

</Project>
namespace ClassLibrary0 {
    public class Class0 {

        public System.String SomeValue { get; set; }

    }
}

ClassLibrary1.csproj

Has a package reference to Newtonsoft.Json via nuget. Has a reference to additional assembly ClassLibrary0 depending on TargetFramework (shitty conditional ItemGroups).

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFrameworks>net20;net35;net40;net45;net451;net452;net46;net461;net462;net47;net471;net472;netstandard1.0;netstandard1.1;netstandard1.2;netstandard1.3;netstandard1.4;netstandard1.5;netstandard1.6;netstandard2.0;netcoreapp1.0;netcoreapp1.1;netcoreapp2.0;netcoreapp2.1</TargetFrameworks>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
  </ItemGroup>

  <ItemGroup Condition="'$(TargetFramework)'=='net20' OR '$(TargetFramework)'=='net35' OR '$(TargetFramework)'=='net40' OR '$(TargetFramework)'=='net45' OR '$(TargetFramework)'=='net451' OR '$(TargetFramework)'=='net452' OR '$(TargetFramework)'=='net46' OR '$(TargetFramework)'=='net461' OR '$(TargetFramework)'=='net462' OR '$(TargetFramework)'=='net47' OR '$(TargetFramework)'=='net471' OR '$(TargetFramework)'=='net472'">
    <Reference Include="ClassLibrary0">
      <HintPath>..\net20\ClassLibrary0.dll</HintPath>
    </Reference>
  </ItemGroup>

  <ItemGroup Condition="'$(TargetFramework)'=='netstandard1.0' OR '$(TargetFramework)'=='netstandard1.1' OR '$(TargetFramework)'=='netstandard1.2' OR '$(TargetFramework)'=='netstandard1.3' OR '$(TargetFramework)'=='netstandard1.4' OR '$(TargetFramework)'=='netstandard1.5' OR '$(TargetFramework)'=='netstandard1.6' OR '$(TargetFramework)'=='netstandard2.0'">
    <Reference Include="ClassLibrary0">
      <HintPath>..\netstandard1.0\ClassLibrary0.dll</HintPath>
    </Reference>
  </ItemGroup>

  <ItemGroup Condition="'$(TargetFramework)'=='netcoreapp1.0' OR '$(TargetFramework)'=='netcoreapp1.1' OR '$(TargetFramework)'=='netcoreapp2.0' OR '$(TargetFramework)'=='netcoreapp2.1'">
    <Reference Include="ClassLibrary0">
      <HintPath>..\netstandard1.0\ClassLibrary0.dll</HintPath>
    </Reference>
  </ItemGroup>

</Project>
namespace ClassLibrary1 {
    public class Class1 {

        public System.String SomeValue { get; set; }

        public Class1() {
            ClassLibrary0.Class0 tmp = new ClassLibrary0.Class0();
        }

    }
}

ClassLibrary2.csproj

Has a project reference to ClassLibrary1.

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFrameworks>net20;net35;net40;net45;net451;net452;net46;net461;net462;net47;net471;net472;netstandard1.0;netstandard1.1;netstandard1.2;netstandard1.3;netstandard1.4;netstandard1.5;netstandard1.6;netstandard2.0;netcoreapp1.0;netcoreapp1.1;netcoreapp2.0;netcoreapp2.1</TargetFrameworks>
  </PropertyGroup>

  <ItemGroup>
    <ProjectReference Include="..\ClassLibrary1\ClassLibrary1.csproj" />
  </ItemGroup>

</Project>
namespace ClassLibrary2 {
    public class Class2 {

        public System.String SomeValue { get; set; }

        public Class2() {
            ClassLibrary1.Class1 tmp = new ClassLibrary1.Class1();
        }

    }
}

After running dotnet restore and rebuilding the solution the root problem can be observed in the output directories:

The Problem:

  • Copies of ClassLibrary0.dll are present in all output directories (=> references to third-party are good).
  • Copies of ClassLibrary1.dll are present in all output directories of ClassLibrary2 (=> project references are good too).
  • Copies of Newtonsoft.Json are only present in net output directories but are missing in all netcoreapp and netstandard.
  • All netcoreapp and netstandard output directories contain a *.deps.json file that correctly mentions the Newtonsoft.Json package as a dependency.

A call to Assembly.LoadFrom(String) however won't load these dependencies to Newtonsoft.Json in case of netcoreapp and netstandard. This results in FileNotFoundException at runtime after running code from the specified loaded assemblies.

What i've tried:

I am trying to resolve those by attaching to the AppDomain.AssemblyResolve event but so far i'm out of luck. Those *.deps.json don't contain a location path of the dependency.

I've tried looking for the assembly in all the locations within the Path environment variable but the nuget package location doesn't seem to be listed there. The location on all my machines seems to be %HOMEPATH%\.nuget\packages\package-name\version\. However i'm not 100% positive that this will always be the correct location for nuget packages on all machines that might execute my code.

The actual question:

Is there a solid way to resolve nuget dependencies at runtime when manually loading assemblies?

Restrictions:

  • This needs to be an offline solution, no downloading of package versions on the fly.
  • Cannot rely on <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> in the original projects.
  • Cannot rely on me having references to the dependencies in question. The whole point of doing this is to be able to dynamically load assemblies that i can't know about at compile time.

NuGet statistics - what does each category actually mean

$
0
0

I am trying to understand what does each line mean at NuGet statistics for a particular package. Understanding these categories is crucial for understanding how is a project/product adopted.

For each of the below categories I copied from NuGet - under what scenario would the count be incremented.

  1. NuGet Command Line
  2. NuGet VS VSIX
  3. Browsers
  4. NuGet Desktop MSBuild Task
  5. Scripted Downloads
  6. NuGet Client V3
  7. NuGet .NET Core MSBuild Task
  8. NuGet Cross-Platform Command Line

I.E. NuGet VS VSIX - Likely coming from a download from Microsoft Visual Studio Marketplace.

Thanks in advance

Increasing awareness of NuGet packages

$
0
0

Are there any ways to promote my NuGet listings?

I don't know what the algorithm is that NuGet uses to determine what order search results appear. But I think my stuff is as good or better than some of the packages that are listed before mine. And some of them are getting hundreds of thousands of downloads.

Of course I understand that you have to create good and useful packages. But if hardly anyone knows about them, then even that won't do much good.

I'm just not getting that good of traction on my packages. Can anyone recommend ways to increase awareness?

OpenCvSharp.CvConst class missing?

$
0
0

I am working on a project with OpenCvSharp.

I want to port this script to C#:

bool patternfound = findChessboardCorners(gray, patternsize, corners,
        CALIB_CB_ADAPTIVE_THRESH + CALIB_CB_NORMALIZE_IMAGE
        + CALIB_CB_FAST_CHECK);

if(patternfound)
  cornerSubPix(gray, corners, Size(11, 11), Size(-1, -1),
    TermCriteria(CV_TERMCRIT_EPS + CV_TERMCRIT_ITER, 30, 0.1));

drawChessboardCorners(img, patternsize, Mat(corners), patternfound);

and I got everything to work, except for the CV_TERMCRIT_EPS + CV_TERMCRIT_ITER etc. I just can't find theese constants! I looked for them in every package I could think of and searched the entire assembly tree for them with no success.

In the source code and the documentation, CvConst is used but I can't find that class!

I tried installing various NuGet Packages and ended up with the following:

  • OpenCvSharp4
  • OpenCvSharp4.runtime.win
  • OpenCvSharp4.Windows

(the first ones were installed by the last one)

So where is OpenCvSharp.CvConst?


Nuget Package - feed (VSTS) :Exception 'System.AggregateException' thrown when trying to add source

$
0
0

I have created a new feed with in Package Release hub (VSTS), installed the credentials, then added the package source.

Now, I am using Visual Studio 2015 to install Micrososft.Aspnet.mvc to a project, however it gives the following error:

Exception 'System.AggregateException' thrown when trying to add source
'https://mysite.pkgs.visualstudio.com/DefaultCollection/_packaging/MyLogUtils/nuget/v3/index.json'.
Please verify all your online package sources are available.    

I need to install NuGet packages normally, so I removed the feed from VSTS. However, the problem persists. How can this problem be resolved?

Correct way to consume Home Grown Nuget Packages with Visual Studio

$
0
0

I'm currently working on a home grown .Net Core project. A developer in another division has created a NuGet package that has a lot of core functionality. I was instructed that I should consume the package in my project to allow for shared code. I was sent the 2 files.

  1. HomeGrownNuget1.nupkg
  2. HomeGrownNuget1.symbols.nupkg

so in Visual Studio I went into Manage Nuget Packages for Solution -> Added a new Package source and pointed it to the local file where I stored the 2 files. Added Local Nuget Source location Then I browsed out the the NuGet package and installed it.

However when I run the program I still cannot step into the logic in the NuGet package.

What is the proper way to get this to work?

CMake and MsVS-NuGet

$
0
0

I'm currently developing a desktop application, using the C++ REST SDK (codename Casablanca), Qt5 and some other libraries.

For the project setup, I use CMake.

How to get CMake to install NuGet Packages?

I now have to install it each time manually, if I rerun CMake, which isn't really an option.

The project file could not be loaded. Could not find a part of the path

$
0
0

I am developing a ASP.NET website in visual studio 2015. I am trying to install one NuGet package but getting The project file could not be loaded. Could not find a part of the path exception. I tried to delete the .suo file but not helped. What's wrong with my project and how to fix this?

How to use hangfire in .net core with mongodb?

$
0
0

I want to use Hangfire for background jobs in registration form process,But I am unable to find Startup.cs file code for Hangfire.mongo.

Viewing all 3170 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>