0

I was wondering if it’s possible to run a CLR (C++/CLI) app without the .NET Framework installed on the target machine.

Since CLR apps depend upon the .NET Framework DLL’s (I think) is there a way to copy the used DLLs to the output folder instead of installing the .NET Framework?

I’m building my CLR app in Microsoft Visual Studio Community 2017 with .NET Framework 1.0 - 4.5.2 installed and VC++ 2017 (The latest one, I forgot lol)

4

1 回答 1

1

Nope.

Not without the app being dotnetcore and bringing the runtime in it's own installer into it's own FOLDER - supported for core (which in 3.0 can handle UI in 2019), NOT supported before that, you must install .NET framework.

Though, .NET framework is part of many thigns these days - Powershell demands it - so any modern windows should have a version installed. Not the MOST current though.

于 2018-10-26T06:50:03.573 回答