I've just updated my version of razorgenerator.build with the latest version.
In my project file, i have :
<Import Project="..\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets" Condition="Exists('..\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets')" />
i have an error when i try to compiling my project :
1>C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets(21,9): error MSB4062: Impossible de charger la tâche "RazorCodeGen" à partir de l'assembly C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\build\\..\tools\RazorGenerator.MsBuild.dll. Impossible de charger le fichier ou l'assembly 'file:///C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\tools\RazorGenerator.MsBuild.dll' ou une de ses dépendances. Le fichier spécifié est introuvable. Assurez-vous que la déclaration <UsingTask> est correcte, que l'assembly et toutes ses dépendances sont disponibles et que la tâche contient une classe publique qui implémente Microsoft.Build.Framework.ITask.
Could you investigate on it please ?
Best regards.
Comments: I have come across this issue as well. It is an issue with the way the razor package is built up. I have attached a screenshot of the package off the nuget feed. The dll RazorGenerator.MsBuild.dll needs to be in the tools folder. Mygaloux to solve your problem copy the dll from lib/net40 into the tools folder.
In my project file, i have :
<Import Project="..\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets" Condition="Exists('..\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets')" />
i have an error when i try to compiling my project :
1>C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\build\RazorGenerator.MsBuild.targets(21,9): error MSB4062: Impossible de charger la tâche "RazorCodeGen" à partir de l'assembly C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\build\\..\tools\RazorGenerator.MsBuild.dll. Impossible de charger le fichier ou l'assembly 'file:///C:\Users\User\Documents\Visual Studio 2012\Projects\qtBDV\qtBDV\packages\RazorGenerator.MsBuild.2.1.4\tools\RazorGenerator.MsBuild.dll' ou une de ses dépendances. Le fichier spécifié est introuvable. Assurez-vous que la déclaration <UsingTask> est correcte, que l'assembly et toutes ses dépendances sont disponibles et que la tâche contient une classe publique qui implémente Microsoft.Build.Framework.ITask.
Could you investigate on it please ?
Best regards.
Comments: I have come across this issue as well. It is an issue with the way the razor package is built up. I have attached a screenshot of the package off the nuget feed. The dll RazorGenerator.MsBuild.dll needs to be in the tools folder. Mygaloux to solve your problem copy the dll from lib/net40 into the tools folder.