Hi,
I have a project that references a source generator project.
I would like to unittest the source generator.
But the unittest project fails to build in NCrunch.
Am I missing something ?
The project reference is the following
<ItemGroup>
<ProjectReference Include="..\OpenApi.Generators\OpenApi.Generators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="true" />
</ItemGroup>
I have a sample solution ready, if needed - where should I send it please ?
Best regards,
Dirk
Build/Test Issues
NCrunch cannot seem to build the unittest project
Started by Dirk Maegh on 2,013 views
Remco NCrunch Developer
#16538
13 Mar 2023 11:10 UTC
Hi Dirk,
Thanks for sharing this issue.
You can upload the sample solution through the NCrunch contact form (Must be less than 10MB).
Are you able to share the build error here?
Thanks for sharing this issue.
You can upload the sample solution through the NCrunch contact form (Must be less than 10MB).
Are you able to share the build error here?
The full error is:
NCrunch: If you are experiencing problems in getting this project to build, have a look at http://www.ncrunch.net/documentation/troubleshooting_project-build-issues
NCrunch: This project was built on server '(local)'
ServiceBuilderGeneratorTests.cs (15, 52): The type or namespace name 'ServiceBuilderGenerator' could not be found (are you missing a using directive or an assembly reference?)
But it is less meaningful, if one does not have the code, so I thought not to post it initially.
I had brought my solution already down to 12K, so no problem :)
NCrunch: If you are experiencing problems in getting this project to build, have a look at http://www.ncrunch.net/documentation/troubleshooting_project-build-issues
NCrunch: This project was built on server '(local)'
ServiceBuilderGeneratorTests.cs (15, 52): The type or namespace name 'ServiceBuilderGenerator' could not be found (are you missing a using directive or an assembly reference?)
But it is less meaningful, if one does not have the code, so I thought not to post it initially.
I had brought my solution already down to 12K, so no problem :)
Remco NCrunch Developer
#16540
14 Mar 2023 05:51 UTC
Thanks for sending through the sample solution. I've reproduced the issue exactly as described. I'm not sure at the moment if this is caused by changed behaviour in the platform, or if we missed something when we added special handling for analyzers, but this will require a code-fix to NCrunch. I'll let you know as soon as we have a build available including the fix.
Remco NCrunch Developer
#16541
15 Mar 2023 05:08 UTC
Could you try the build below and let me know if this solves the issue for you?
NCrunch_Console_4.17.0.3.msi
NCrunch_Console_4.17.0.3.zip
NCrunch_GridNodeServer_4.17.0.3.msi
NCrunch_GridNodeServer_4.17.0.3.zip
NCrunch_LicenseServer_4.17.0.3.zip
NCrunch_VS2010_4.17.0.3.msi
NCrunch_VS2010_4.17.0.3.zip
NCrunch_VS2012_4.17.0.3.msi
NCrunch_VS2012_4.17.0.3.zip
NCrunch_VS2013_4.17.0.3.msi
NCrunch_VS2013_4.17.0.3.zip
NCrunch_VS2015_4.17.0.3.msi
NCrunch_VS2015_4.17.0.3.msi.7z
NCrunch_VS2015_4.17.0.3.zip
NCrunch_VS2017_4.17.0.3.msi
NCrunch_VS2017_4.17.0.3.msi.7z
NCrunch_VS2017_4.17.0.3.zip
NCrunch_VS2019_4.17.0.3.msi
NCrunch_VS2019_4.17.0.3.msi.7z
NCrunch_VS2019_4.17.0.3.zip
NCrunch_VS2022_4.17.0.3.msi
NCrunch_VS2022_4.17.0.3.msi.7z
NCrunch_VS2022_4.17.0.3.zip
NCrunch_Console_4.17.0.3.msi
NCrunch_Console_4.17.0.3.zip
NCrunch_GridNodeServer_4.17.0.3.msi
NCrunch_GridNodeServer_4.17.0.3.zip
NCrunch_LicenseServer_4.17.0.3.zip
NCrunch_VS2010_4.17.0.3.msi
NCrunch_VS2010_4.17.0.3.zip
NCrunch_VS2012_4.17.0.3.msi
NCrunch_VS2012_4.17.0.3.zip
NCrunch_VS2013_4.17.0.3.msi
NCrunch_VS2013_4.17.0.3.zip
NCrunch_VS2015_4.17.0.3.msi
NCrunch_VS2015_4.17.0.3.msi.7z
NCrunch_VS2015_4.17.0.3.zip
NCrunch_VS2017_4.17.0.3.msi
NCrunch_VS2017_4.17.0.3.msi.7z
NCrunch_VS2017_4.17.0.3.zip
NCrunch_VS2019_4.17.0.3.msi
NCrunch_VS2019_4.17.0.3.msi.7z
NCrunch_VS2019_4.17.0.3.zip
NCrunch_VS2022_4.17.0.3.msi
NCrunch_VS2022_4.17.0.3.msi.7z
NCrunch_VS2022_4.17.0.3.zip
Seems to work fine now.
Thx!
Thx!
Post a reply
Log in to reply.