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

Can i use a nuget package/ dll using another name?

$
0
0

EDIT :

so i downloaded the package from nuget.org and zipped and then unzipped.Went to lib and changed the dll name from 'Microsoft.ApplicationInsights' to 'Apptest'.Referencing this dll using the hint path from my local doesn't work - it simply renames automatically as the original name .Can I not change the name anyhow?


I have 2 projects under the same solution. It is basically a library

I want to use Microsoft.ApplicationInsights in my first project Ev2.

When I include the package in Ev2 ,the build is successful..The second project Ev2.Arm is referencing my first Project Ev2. When i build this second project , it gives me error that there are conflicting names between namespace Microsoft.ApplicationInsights and a class in Ev2.Arm . This class name is ApplicationInsights

the error message asks me to change either name.

This library is released and if i change the class name ApplicationInsights , it wont be backward compatible.

I am not directly referencing the package Microsoft.ApplicationInsights in my second project , but since second project references first , i guess it is happening because of that.

Can i use Microsoft.ApplicationInsights using some other name ??

Like can i download package and rename it ?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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