Share via

Error by developing "Class Library" .NETFramework 4.0

Simon 491 Reputation points
2022-09-20T20:08:43.17+00:00

The following error occurs when trying to develop a "Class Library"
Error BC30663 Attribute 'TargetFrameworkAttribute' cannot be applied multiple times.
I cannot find a solution why this is occuring.

I opened the AssemblyInfo.vb file and did not find any attribute applied multiple times. Why is this error displaying?
I searched in the project for this attribute: "TargetFrameworkAttribute " and I found it in SystemRuntime.xml. I found may files with this name.
I do not understand xml language and I therefore cannot figure out this error.
Any suggestion will be greatly appreciated.

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.


Answer accepted by question author

Michael Taylor 61,226 Reputation points
2022-09-20T20:25:22.34+00:00

Open your vbproj file. Look for TargetFramework. It might be in there multiple times for some reason.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.