0

I have a setup that looks like this

ServiceA\src\aspnetproject

ServiceB\src\aspnetproject

SharedComponents\src\sharedcomponent

Each service has it's own solution file that also includes some of the shared components. The shared components are classic .Net assemblies. The wrap project.json files are located in SharedComponents\src\wrap\sharedcomponent. I can add the reference to the sharedcomponent from the aspnetproject without issues, but using it fails to build. This works fine when the projects are all in the same folder. Any ideas?

Build error:

1>------ Rebuild All started: Project: BeoCloud.Core.Models, Configuration: Debug Any CPU ------
2>------ Rebuild All started: Project: FacadeApiService, Configuration: Debug x64 ------
1>  BeoCloud.Core.Models -> C:\Projects\BeoCloud\Core\src\BeoCloud.Core.Models\bin\Debug\BeoCloud.Core.Models.dll
3>------ Rebuild All started: Project: Api, Configuration: Debug Any CPU ------
3>C:\Projects\BeoCloud\Facade\src\Api\Controllers\SearchController.cs(14,69,14,88): DNX 4.5.1 error CS0246: The type or namespace name 'SimpleSearchRequest' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Projects\BeoCloud\Facade\src\Api\Controllers\SearchController.cs(14,27,14,47): DNX 4.5.1 error CS0246: The type or namespace name 'SimpleSearchResponse' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Projects\BeoCloud\Facade\src\Api\Controllers\SearchController.cs(28,28,28,48): DNX 4.5.1 error CS0246: The type or namespace name 'SimpleSearchResponse' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Projects\BeoCloud\Facade\src\Api\Controllers\SearchController.cs(36,28,36,48): DNX 4.5.1 error CS0246: The type or namespace name 'SimpleSearchResponse' could not be found (are you missing a using directive or an assembly reference?)
3>C:\Projects\BeoCloud\Facade\src\Api\Controllers\SearchController.cs(14,49,14,68): DNX 4.5.1 warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
3>
3>  Build failed.
3>           1 Warning(s).
3>           4 Error(s).
3>
3>  Time elapsed 00:00:00.0609992
3>
========== Rebuild All: 2 succeeded, 1 failed, 0 skipped ==========
4
  • The build error would be helpful Commented Nov 8, 2015 at 23:23
  • I have the same issue, but I get an reference error in the project.json. Means I see the problem directly after setting the reference. In the same folder it works fine. I'll try to find or add an issue on GitHub. Commented Nov 9, 2015 at 8:49
  • I have added the build error, it isn't very helpful though. I have already created an issue on github github.com/aspnet/Home/issues/1058 Commented Nov 9, 2015 at 8:51
  • @JuergenGutsch i also got reference errors until i created the wrap project.json files Commented Nov 9, 2015 at 8:55

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.