RicoSuter / NSwag

The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
http://NSwag.org
MIT License
6.69k stars 1.23k forks source link

Exception thrown when using SolutionName in <AssemblyName> #4690

Open tzdevelopteam opened 8 months ago

tzdevelopteam commented 8 months ago

The exception "Project outputs could not be located in 'path'. Ensure that the project has been built" is thrown when using SolutionName in <AssemblyName>.

Here's an example:

<Project>
  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <Nullable>enable</Nullable>
    <ImplicitUsings>enable</ImplicitUsings>
    <InvariantGlobalization>true</InvariantGlobalization>
    <AssemblyName>$(SolutionName).$(MSBuildProjectName)</AssemblyName>
    <RootNamespace>$(AssemblyName)</RootNamespace>
  </PropertyGroup>
</Project>