NetSDK1 ERROR

NetSDK1 ERROR

oguzkomcu
Enthusiast Enthusiast
738 Views
3 Replies
Message 1 of 4

NetSDK1 ERROR

oguzkomcu
Enthusiast
Enthusiast

I have an api project. I want the rvt file I want to convert the data result from this api to gltf format. I did not have such an error when I developed my plugin for testing purposes only, without using it with the API. I got an error when I added my class library (actually a ready template) to run this plugin in my api project. My class library uses .Net Freamwork latest version and my api project uses .Net core. What is the solution for this error?

Error : The target platform must be set to Windows (usually by including '-windows' in the TargetFramework property) when using Windows Forms or WPF, or referencing projects or packages that do so. RevitToGltfTrialApi

0 Likes
739 Views
3 Replies
Replies (3)
Message 2 of 4

Kennan.Chen
Advocate
Advocate

Are you trying to load a .NET Framework library into an ASP .NET Core WebApi project?

Seriously?

Message 3 of 4

oguzkomcu
Enthusiast
Enthusiast

I may have tried this because I don't know. 😀Well, apart from this issue, I have another problem. When Revit is opened, my "3D : 3d views" plan must be open for my gltf codes to work. I have a code that opens my 3D plan, but it continues without opening it. My 3d plan needs to be clear. How can I open this 3d plan with c# and then continue with my other codes?

0 Likes
Message 4 of 4

Kennan.Chen
Advocate
Advocate

I notice that you've posted a series of related threads recently, with which I still cannot figure out what the whole picture looks like.

It helps a lot if people here have an overview on what you are trying to acheive and what's you plan to carry it out.

0 Likes