You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My documentUrl placeholder is never replaced with the variable. nswag is aware of my variable as I can see in my console:
Executing file 'nswag.config.nswag' with variables 'documentUrl=https://example.com/myapi.json'...
System.IO.FileNotFoundException: Could not find file 'D:\Repositories\MyPath\MyApi{documentUrl}'.
File name: 'D:\Repositories\MyPath\MyApi{documentUrl}'
So why is it not being replaced? If I use environment variables it works but even if I try and run this directly in a terminal it does not get replaced:
nswag run .\nswag.config.nswag /variables:documentUrl=https://example.com/myapi.json
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have the following in my project file:
Any my configuration file looks as follows:
My documentUrl placeholder is never replaced with the variable. nswag is aware of my variable as I can see in my console:
So why is it not being replaced? If I use environment variables it works but even if I try and run this directly in a terminal it does not get replaced:
Can anyone please advise what I am doing wrong?
The target framework for my project is net7.0.
Beta Was this translation helpful? Give feedback.
All reactions