C
C#7mo ago
Elonim

✅ I have a weird swagger problem

I have a problem with swagger. no matter what i try i get a white blank page for swagger in .net 7 and 8 on a new project with the weather demo API. but everything works fine in .net 6. even if i create a new project in .net6 it works fine if i upgrade to .net 7 or 8 i get a blank page. everything else works in postman
10 Replies
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
Elonim
Elonim7mo ago
yes and all i get is a 404 for index.html and favicon if i am on .net 7 or 8 everything is fine in 6 i have also tried in a docker container and there everything works
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
Elonim
Elonim7mo ago
im not sure why anything should be missing in a clean new sollution for a .net 7 or 8 project when it works in docker or on another pc
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX7mo ago
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
Elonim
Elonim7mo ago
BlazeBin - weqpzsbowven
A tool for sharing your source code with the world!
Elonim
Elonim7mo ago
swagger works with the APtestI6.csproj but not APtestI8.csproj and it is for the same for every application it forks in net6.0 or lower but not higher
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
Elonim
Elonim7mo ago
thats all fine and good but can you tell me why this produces a blank page in swagger https://paste.mod.gg/hqjjwbshrqdm/1 its the same example you just used.
BlazeBin - hqjjwbshrqdm
A tool for sharing your source code with the world!