-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expected "%(NSwagGenerateExceptionClasses)" to evaluate to a boolean instead of "", in condition "!%(FirstForGenerator) OR !%(NSwagGenerateExceptionClasses)" when upgrading from preview010
to preview012
#4633
Comments
Got this when downgrading from preview012 to preview011 as well :( |
Temporary workaround for this is to add property to the project explicitly: |
This seems to be still an issue in the v14 release... |
I resolved the issue by adding a boolean property <PropertyGroup>
<NSwagGenerateExceptionClasses>true</NSwagGenerateExceptionClasses>
</PropertyGroup> |
The issue seem to be present on the latest build as well I'm not able to use |
Present for me as well (NSwag 4.6.1) but |
Condition expression evaluation resulted in error when NSwagGenerateExceptionClasses is not defined. Fixes RicoSuter#4633
Condition expression evaluation resulted in error when NSwagGenerateExceptionClasses is not defined. Fixes RicoSuter#4633
#4773 should fix this when merged. |
With <PropertyGroup>
<NSwagGenerateExceptionClasses>false</NSwagGenerateExceptionClasses>
</PropertyGroup> It gives me an error with Edit: Found out why, i will just wait for the PR |
The issue seems to still exist in the latest version, I tried the work around and didn't work. Is there an estimation for when this will be fixed? |
👇
|
Condition expression evaluation resulted in error when NSwagGenerateExceptionClasses is not defined. Fixes #4633
What will be the release number for this one ? |
I tried version 14.0.7 and the build is still broken with this issue: The command "dotnet --roll-forward-on-no-candidate-fx 2 ....exited with code 255 |
This is still partly broken, see #4890. |
Condition expression evaluation resulted in error when NSwagGenerateExceptionClasses is not defined. Fixes RicoSuter#4633
Inside a project that uses a
OpenApiProjectReference
to generate a C# client:Running the build on NSwag version 14.0.0-preview012 outputs the following error:
The text was updated successfully, but these errors were encountered: