C3D sample .Net project issue

C3D sample .Net project issue

karl.sch1983
Advocate Advocate
584 Views
2 Replies
Message 1 of 3

C3D sample .Net project issue

karl.sch1983
Advocate
Advocate

I am trying to build a sample VB project provided with C3D 2025 (C:\Program Files\Autodesk\AutoCAD 2025\C3D\Sample\Civil 3D API\DotNet\VB.NET\AlignmentSample). As soon as I open the sample project, there is a message in VS

Config_1.png

Upon opening configuration manager everything seems OK.

Config_2.png

So I am not sure what that message implies. Does anyone have any idea? I simply closed the configuration manager without changing anything.

Next, I tried to 'upgrade'. On the screen 'Which is your preferred target framework?' VS2022 it shows '.Net9.0 Preview' This to me meant it was already targeting .Net core but I am no expert. Has anyone seen this?

TF_1.png

I am thinking maybe the project is already targeting .Net 8.0. Moving on. I simply try to build it and there are no errors but also no build. Output simply says 'Skipped'? I notice that there is a blue exclamation mark on the sample project. Hovering over it shows this message

Config_3.png

I suspect this is the culprit but have no clue how to fix it. I am building a Debug version 'x64' platform. Also tried release version 'x64'. Nothing works. Can someone please point me in the right direction. I have spent 2 days on this but getting nowhere. Any help is greatly appreciated. Thanks everyone.

0 Likes
Accepted solutions (1)
585 Views
2 Replies
Replies (2)
Message 2 of 3

Jeff_M
Consultant
Consultant
Accepted solution

The Configuration issue is due to they did not completely remove the AnyCPU configuration. Remove it from the Solution configuration by selecting <Edit> then Remove, be sure to check the box to also remove from any projects using it. This should solve the message issue at startup as well as the build issue.

 

Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 3 of 3

karl.sch1983
Advocate
Advocate

Thanks @Jeff_M . That was it. Really appreciate your time.

0 Likes