Currently I'm making a solution containing a C# project. This project references another CLI/C++ project in the solution. When building a packet using the C# project (using -includereferencedprojects), results in an exception from nuget. It cannot find the dll of the c++ project. The problem is that the directory is missing a path seperator between the solution dir and the configuration (see exception below).
NuGet.CommandLineException: Unable to find 'D:\GIT\NugetTestCliDebug\HelloClass.
dll'. Make sure the project has been built.
at NuGet.Commands.ProjectFactory.BuildProject()
at NuGet.Commands.ProjectFactory.RecursivelyApply(Action`1 action, ProjectCol
lection alreadyAppliedProjects)
at NuGet.Commands.ProjectFactory.RecursivelyApply(Action`1 action)
at NuGet.Commands.ProjectFactory.ApplyAction(Action`1 action)
at NuGet.Commands.ProjectFactory.CreateBuilder(String basePath)
at NuGet.Commands.PackCommand.BuildFromProjectFile(String path)
at NuGet.Commands.PackCommand.BuildPackage(String path)
at NuGet.Commands.PackCommand.ExecuteCommand()
at NuGet.Commands.Command.Execute()
at NuGet.Program.Main(String[] args)
The directory should be 'D:\GIT\NugetTestCli\Debug\HelloClass.dll'
At the moment, this is temporary fixed by simply adding an extra path separator in the output of the c++ project, but this conflicts with the path seperator in the $(SolutionDir) macro (the path seperator is already in this macro).
NuGet.CommandLineException: Unable to find 'D:\GIT\NugetTestCliDebug\HelloClass.
dll'. Make sure the project has been built.
at NuGet.Commands.ProjectFactory.BuildProject()
at NuGet.Commands.ProjectFactory.RecursivelyApply(Action`1 action, ProjectCol
lection alreadyAppliedProjects)
at NuGet.Commands.ProjectFactory.RecursivelyApply(Action`1 action)
at NuGet.Commands.ProjectFactory.ApplyAction(Action`1 action)
at NuGet.Commands.ProjectFactory.CreateBuilder(String basePath)
at NuGet.Commands.PackCommand.BuildFromProjectFile(String path)
at NuGet.Commands.PackCommand.BuildPackage(String path)
at NuGet.Commands.PackCommand.ExecuteCommand()
at NuGet.Commands.Command.Execute()
at NuGet.Program.Main(String[] args)
The directory should be 'D:\GIT\NugetTestCli\Debug\HelloClass.dll'
At the moment, this is temporary fixed by simply adding an extra path separator in the output of the c++ project, but this conflicts with the path seperator in the $(SolutionDir) macro (the path seperator is already in this macro).