Reputation: 17329
I'm making a class library that exposes an action filter and will be published with NuGet. I'm trying to install the following with NuGet:
System.Web.Script.Serialization.JavaScriptSerializer
in assembly System.Web.Extensions
.
System.Web.HttpContextBase
in assembly System.Web
.
How do I find which NuGet package contains these assemblies?
Upvotes: 2
Views: 1258
Reputation: 47987
So you are trying to create a NuGet package and you want it to add a reference to System.Web and System.Web.Extensions to the project when it is installed.
For GAC references you do this by adding a frameworkAssembly element to your .nuspec file. The example below is taken from the NuGet documentation.
<frameworkAssemblies>
<frameworkAssembly assemblyName="System.ServiceModel" targetFramework="net40" />
<frameworkAssembly assemblyName="System.Web" />
</frameworkAssemblies>
With the above in your .nuspec file your NuGet package will add a reference to System.ServiceModel and System.Web if they do not already exist in the project.
Upvotes: 1
Reputation: 6741
Both System.Web.Extensions
and System.Web
are part of the framework, so there are no nuget packages for them.
Upvotes: 2