I am running Windows 8 and have both Visual Studio 2010 Ultimate w/sp1 and Visual Studio 2012 Ultimate and I am trying to create a Portable Class Library that supports .net 3.5 and greater.
When I first try to create a PCL I get a screen like this:
I noticed that .net 3.5 is not in the list so I clicked on "Install additional frameworks" and found a Targeting Pack for version 3.5. But when I download and run "dotnetfx35setup.exe" nothing happens. And when I go back into VS and try to create a new Portable Class Library, it lists the same target frameworks as before.
I have also turned on the Windows Features for .NET Framework 3.5 and am now out of ideas. Here is a screen shot in case I missed something else.
Thanks,
The Portable Class Library project enables you to write and build managed assemblies that work on more than one . NET Framework platform. You can create classes that contain code you wish to share across many projects, such as shared business logic, and then reference those classes from different types of projects.
Select the Visual C# → Windows template in the left pane and select Class Library (Portable) in the middle pane. Enter StringLibrary in the name field and click OK to create this project.
All aspects of . NET Core are open-source including class libraries, runtime, compilers, languages as well as application frameworks. . NET Core also supports C#, Visual Basic, and F#.
Use a . NET Core library when you want to increase the . NET API surface area your library can access, and you are okay with allowing only . NET Core applications to be compatible with your library.
.NET Framework 3.5 didn't have a portable profile. Do you have this problem within Visual Studio 2010? I noticed once I installed Visual Studio 2012 on my own computer, the .NET Framework 3.5 was actually removed, likely because .NET 4.5 contains it.
Because you can still target to the .NET 3.5 if you want, just not a portable profile ( PCL ), which is easily proven by this article what you want is simply not supported.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With