Ad

Tuesday, March 26, 2024

AutoCAD 2025 - .NET 8 Build Folder

 AutoCAD 2025 was released, at least I think it was. I'm too lazy to find out. 

AutoCAD 2025 has migrated from .NET Framework 4.7.2 to .NET 8 (previously named .NET Core). 

With this change you might need to set the BaseIntermediateOutputPath in order to use a common code base between AutoCAD years. I've found that you can create a "Directory.Build.props" file and put it in the root folder of your solution. Then within the file add: 

<Project>
 <PropertyGroup>
   <Deterministic>true</Deterministic>
   <BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">obj\$(MSBuildProjectFile)\</BaseIntermediateOutputPath>
 </PropertyGroup>
</Project>

This will move the project build from the "obj" folder to a "obj/ProjectFileName" folder. This will cause the build for each project to go into their own folder and prevent projects from mingling and causing duplicate info that prevents the build from building. 

 Here is the help topic: https://learn.microsoft.com/en-us/visualstudio/msbuild/customize-by-directory?view=vs-2019


The app being built in the above example may be found here: 

https://apps.autodesk.com/CIV3D/en/Detail/Index?id=6447637305413252324

No comments:

LinkWithin

Blog Widget by LinkWithin

Ad