Questions tagged [multi-targeting]

28 questions
41
votes
4 answers

I've built a Windows service as "Any CPU". Why does it run in 32-bit mode on my 64 bit machine?

I've built a Windows service as "Any CPU". However, when I run it on my 64 bit machine it runs in 32 bit. How can I fix it? I'm using .NET and C#, and my operating system is Windows 2008 R2. If I build it in x64 it correctly loads in 64 bit mode.…
Mark
  • 5,223
  • 11
  • 51
  • 81
8
votes
1 answer

How do I call my script before all the builds for only once in a multi-targeting project

I would like to run my powershell script for only one time before the build process. In my mind this should be easily done, simply calling the script before the PreBuildEvent would be OK. Well, it does work for normal projects. However, for…
Jaren Duan
  • 155
  • 2
  • 10
6
votes
2 answers

MSBuild maxcpucount > 1 Causes build errors

I'm trying to build about 600 projects some are .net 2.0, some are 3.5. I'm using Windows 2003 Enterprise Edition 32 bit with all the latest windows updates. Builds fine when maxcpucount is 1. If I bump it up to try and improve performance it get…
Ryu
  • 8,641
  • 10
  • 65
  • 98
5
votes
1 answer

How to Multi target a library project with WPF controls

I have a class library project that needs to target .NET 3.5 and .NET 4.0, and the way it is done now is the typical way of creating separate projects per target framework and linking files in each project to the same source. I would like to take…
TJ Rockefeller
  • 3,178
  • 17
  • 43
5
votes
3 answers

Unable to target .NET 2.0 in Visual Studio 2010

What steps are needed to target previous versions of the .NET framework in Visual Studio 2010? I installed Visual Studio and the .NET 2.0 SDK (from here), but only .NET 4.0 is in the list of available frameworks. What am I missing?
zildjohn01
  • 11,339
  • 6
  • 52
  • 58
4
votes
1 answer

Using v90 (VS2008) Platform Toolset in Visual Studio 2015

Is it possible (and how) to use VS2015 IDE to build native C++ projects using the compiler, linker, the STL and everything else that comes with VS2008? What I'm trying to do is called "C++ Native Multi-Targeting" and is known that e.g. VS2012 allows…
V-R
  • 1,309
  • 16
  • 32
3
votes
1 answer

Multi-targeting build with Visual Studio and .NET Framework

I've seen a few frameworks that provide different builds; for example they might provide 32bit and 64bit builds, or they might provide a build which targets .NET 2.0, 3.5 and 4.0 I have a library which works on .NET 3.5 upwards, but I'm not sure…
Matthew Layton
  • 39,871
  • 52
  • 185
  • 313
3
votes
3 answers

What happened to the prism project linker in Visual Studio 2010?

How do I share files between WPF and Silverlight projects in Visual Studio 2010?
cmaduro
  • 1,672
  • 3
  • 21
  • 40
2
votes
2 answers

How to create a .NET Core library that is Multi-Targeting but targets different dll's per framework?

I'm trying to update a library that is currently targeting .NET4.0 to: NETStandard 2.0 NET4.5.2 using Multi-Targeting. The dependent library I'm using is Microsoft.Build.Framework. It's found either in two places: NuGet and min level is…
Pure.Krome
  • 84,693
  • 113
  • 396
  • 647
2
votes
3 answers

Best practice to include console app in NuGet

I'm developing an open-source library which mainly consists of one class-library project targeting .NET Standard 2.0. On top of that, I've also implemented a console app which is the CLI to this library. The console project (for historic reasons)…
Dejan
  • 9,150
  • 8
  • 69
  • 117
2
votes
2 answers

Is there a plugin for targetting .NET 1.1 with VS 2008?

Is there a plugin for targetting .NET 1.1 with VS 2008?
juan
  • 80,295
  • 52
  • 162
  • 195
2
votes
0 answers

Can C++ Native Multi-Targeting in VS2012 be used to target VS2005?

I have converted my vcproj file into a vcxproj file by loading it in VS2012. Then I added v2.0 to the PropertyGroup labeled "Globals". I have followed…
Peter Hession
  • 501
  • 5
  • 9
2
votes
3 answers

Current best way to turn an existing web app into a desktop app without reprogramming it?

I'm looking for a way to take an existing web app programmed in simple HTML4, CSS, and jQuery/Javascript and deploy it as a desktop app that needs no internet access and accesses a local or intranet database. Is there a solution to do this without…
dallin
  • 8,775
  • 2
  • 36
  • 41
1
vote
0 answers

Can not install the System.Net.Http Nuget package on a project that supports Multi-Target framework

We were developing a .net application in .Net Framework 4 version. Then we decided to convert the application to multi-platform(net 40, net 45, net46, net47) We converted the application to multi-target platform and began to install nuget packages.…
sabandurna
  • 86
  • 9
1
vote
3 answers

Compiling .NET 3.5 project using .NET 4.0 compiler

I have a solution that contains several projects. One of the test projects is using .NET 4.0 due to a dependency. The deploy-able project I want to build is targeted against the .NET 3.5 compiler. Our current build script is not granular enough…
sgmeyer
  • 645
  • 5
  • 21
1
2