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

Local nuget package A is added into B, but B doesn't see it

$
0
0

2 projects: MyProj.A and MyProj.B.

MyProj.A is built as NuGet package and added to MyProj.B.

MyProj.A is examined with Nuget Package Explorer and I see all types inside but MyProj.B sees nothing, even MyProj.B itself.

MyProj.A structure:

MyProj.A.csproj:

<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup><TargetFrameworks>netstandard2.0;net452</TargetFrameworks></PropertyGroup></Project>

MyProj.A.nuspec:

<?xml version="1.0"?><package ><metadata><id>MyProj.A</id><version>1.0.0</version><authors>MyProj</authors><owners>MyProj</owners><requireLicenseAcceptance>false</requireLicenseAcceptance><copyright>Copyright @ 2023</copyright><description>MyProj A.</description></metadata></package>

Class1.cs:

namespace MyProj.A{    public class Class1    {        public int Prop { get; set; }    }}

NuGet Package Explorer view:

NuGet Package Explorer

MyProj.B view:

MyProj.B


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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