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

ASP.NET 5 DNX Beta7 and NuGet - compilation issue

$
0
0

Hi,

We have Visual Studio 2015 with DNX Beta 7 update installed. This is issue related to an ASP.NET 5 DNX 7 WebAPI project.

When we add a NuGet we receive Visual Studio compilation errors the moment a type from that NuGet is used.

For example, if we add the latest stable 'Unity' NuGet to our DNX website, everything looks ok. However after we add a type from that NuGet and the corresponding 'using' clause there are compilation errors when the solution is complied! There really are no compilation errors highlighted in the Visual Studio editor ... the errors only show-up when the solution is compiled/built.

Sample code:

      using Microsoft.Practices.Unity;

      public IUnityContainer UnityContainer { get; set; }

Does anyone know what needs to be done to get this to work? Is there some workaround needed in the project.json file perhaps?

We would appreciate any help since we hope to build an awesome new website using the new DNX technology and Angular JS.

Thanks,

- Nalin J


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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