I have been trying to get PackageReference working.
It seems it works fine, in that I can manage nuget packages, and the project file as well as solution explorer, looks correct.
But when editing a csharp file, Roslyn is not finding any of the referenced assemblies from the nuget package.
In the screenshot below, you can see that the nuget package shows up in solution explorer, but the csharp code won't compile because it can't find the assemblies within the referenced nuget package:
Unload my project, rename the extension from dnnproj to csproj
Remove the csharp imports
Now everything works fine, and Roslyn has no problem resolving those assemblies in the nuget packages.
I am not sure what I need to do to resolve this problem. As far as I can tell, I have all the same capaiblities, and XAML rule files enabled in my project system... Any guidance appreciated.
I have been trying to get
PackageReference
working.It seems it works fine, in that I can manage nuget packages, and the project file as well as solution explorer, looks correct.
But when editing a csharp file, Roslyn is not finding any of the referenced assemblies from the nuget package.
In the screenshot below, you can see that the nuget package shows up in solution explorer, but the csharp code won't compile because it can't find the assemblies within the referenced nuget package:
Here is what my project file looks like:
I have found that if I:
dnnproj
tocsproj
Now everything works fine, and Roslyn has no problem resolving those assemblies in the nuget packages.
I am not sure what I need to do to resolve this problem. As far as I can tell, I have all the same capaiblities, and XAML rule files enabled in my project system... Any guidance appreciated.