ChrisHammond / DNNTemplates

Christoc's DotNetNuke Extension Development templates for Visual Studio
http://www.christoc.com/Products/DNN-Development-Templates
Other
97 stars 38 forks source link

Cannot migrate project file in Visual Studio 2015 Community #29

Closed colincameron closed 5 years ago

colincameron commented 8 years ago

When trying to create a new project using the DAL2 SPA Module template, I receive this error:

screenshot 2016-07-01 11 40 42

The project does not open, but exists in the correct location and can be opened.

The project then refuses to build, with the following output:

1>  Consider app.config remapping of assembly "Newtonsoft.Json, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" from Version "6.0.0.0" [] to Version "7.0.0.0" [C:\websites\dnndev.me\bin\Newtonsoft.Json.dll] to solve conflict and get rid of warning.
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /><bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" /></dependentAssembly></assemblyBinding>
1>C:\websites\dnndev.me\DesktopModules\SPATime\Properties\AssemblyInfo.cs(34,32,34,44): warning CS7035: The specified version string does not conform to the recommended format - major.minor.build.revision
1>  SPATime -> C:\websites\dnndev.me\bin\SPATime.dll
1>C:\websites\dnndev.me\DesktopModules\SPATime\BuildScripts\ModulePackage.Targets(9,5): error MSB4062: The "MSBuild.Community.Tasks.XmlRead" task could not be loaded from the assembly C:\websites\dnndev.me\DesktopModules\SPATime\BuildScripts\MSBuild.Community.Tasks.dll. Could not load file or assembly 'file:///C:\websites\dnndev.me\DesktopModules\SPATime\BuildScripts\MSBuild.Community.Tasks.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I'm following the tutorial here: https://youtu.be/dpiOs_EL-OY

I have Visual Studio 2015 Community Edition, running on Windows 10 Home. My DNN installation is running fine at dnndev.me with the recommended folder location of C:\websites\dnndev.me

colincameron commented 8 years ago

Update: all works successfully if Visual Studio is run as administrator.

This should probably be mentioned in the videos if it is a requirement (as well as the need to install MSBuildTasks). If this shouldn't be a requirement, is there any way around it? I'd rather not have to run VS as administrator if I don't have to.

akkgr commented 6 years ago

for me same error even if i run visual studio 2017 as administrator

justinasmussen commented 6 years ago

I am having the same issue