Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Add reference to system.drawing.xxxx

$
0
0

Update to my question:  I guess I don't understand the how the framework is layed out.  With regard to Hanselmans post referenced by this linkhttp://www.hanselman.com/blog/AnUpdateOnASPNETCore10RC2.aspx it appears I should be able to reference the ".net standard library" from my asp.net core application.  However this linkhttps://forums.asp.net/p/2010432/5788739.aspx appears to conflict with that i.e. "If you choose to only target the full CLR then you can use all the existing types including System.Drawing and more."

Sorry to have to write a question for what should be a simple task.  I need to add references to these dlls in my project:

System.Drawing

System.Drawing.Drawing2D

System.Drawing.Imaging

System.Drawing.Text

How do I reference these dlls from my project?  I cannot find them on nuget.  Adding them manually to project.json as suggested here http://stackoverflow.com/questions/37646694/add-dll-reference-in-dotnet-cli results in an error.

Here is my project.json

{"userSecretsId": "aspnet-RC2CoreTest2-d092f974-1ed6-4625-b2e4-825fd01d61d9","dependencies": {"Microsoft.NETCore.App": {"version": "1.0.0-rc2-3002702","type": "platform"
    },"Microsoft.ApplicationInsights.AspNetCore": "1.0.0-rc2-final","Microsoft.AspNetCore.Authentication.Cookies": "1.0.0-rc2-final","Microsoft.AspNetCore.Diagnostics": "1.0.0-rc2-final","Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore": "1.0.0-rc2-final","Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.0.0-rc2-final","Microsoft.AspNetCore.Mvc": "1.0.0-rc2-final","Microsoft.AspNetCore.Razor.Tools": {"version": "1.0.0-preview1-final","type": "build"
    },"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-rc2-final","Microsoft.AspNetCore.Server.Kestrel": "1.0.0-rc2-final","Microsoft.AspNetCore.StaticFiles": "1.0.0-rc2-final","Microsoft.EntityFrameworkCore.SqlServer": "1.0.0-rc2-final","Microsoft.EntityFrameworkCore.Tools": {"version": "1.0.0-preview1-final","type": "build"
    },"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-rc2-final","Microsoft.Extensions.Configuration.Json": "1.0.0-rc2-final","Microsoft.Extensions.Configuration.UserSecrets": "1.0.0-rc2-final","Microsoft.Extensions.Logging": "1.0.0-rc2-final","Microsoft.Extensions.Logging.Console": "1.0.0-rc2-final","Microsoft.Extensions.Logging.Debug": "1.0.0-rc2-final","Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-rc2-final","Microsoft.VisualStudio.Web.CodeGeneration.Tools": {"version": "1.0.0-preview1-final","type": "build"
    },"Microsoft.VisualStudio.Web.CodeGenerators.Mvc": {"version": "1.0.0-preview1-final","type": "build"
    },"Blog.Core": "1.0.0-*","Blog.Domain": "1.0.0-*","Blog.Model": "1.0.0-*","Blog.Services": "1.0.0-*"
  },"tools": {"Microsoft.AspNetCore.Razor.Tools": {"version": "1.0.0-preview1-final","imports": "portable-net45+win8+dnxcore50"
    },"Microsoft.AspNetCore.Server.IISIntegration.Tools": {"version": "1.0.0-preview1-final","imports": "portable-net45+win8+dnxcore50"
    },"Microsoft.EntityFrameworkCore.Tools": {"version": "1.0.0-preview1-final","imports": ["portable-net45+win8+dnxcore50","portable-net45+win8"
      ]
    },"Microsoft.Extensions.SecretManager.Tools": {"version": "1.0.0-preview1-final","imports": "portable-net45+win8+dnxcore50"
    },"Microsoft.VisualStudio.Web.CodeGeneration.Tools": {"version": "1.0.0-preview1-final","imports": ["portable-net45+win8+dnxcore50","portable-net45+win8"
      ]
    }
  },"frameworks": {"netcoreapp1.0": {"imports": ["dotnet5.6","dnxcore50","portable-net45+win8"
      ]
    }
  },"buildOptions": {"emitEntryPoint": true,"preserveCompilationContext": true
  },"runtimeOptions": {"gcServer": true
  },"publishOptions": {"include": ["wwwroot","Views","appsettings.json","web.config"
    ]
  },"scripts": {"prepublish": [ "npm install", "bower install", "gulp clean", "gulp min" ],"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
  }
}

thank you


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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