Why does my Visual Studio Win32 project require the installation of .NET 3.5 SP1?

Using Visual Studio 2008, I created a C ++ Win32 project . To free the program, I made a Visual Studio installation project as part of the same solution.

The setup.exe program offers my users to install .NET 3.5 SP1, which is often installed at 15+ minutes and is allowed only for administrator level accounts. If they do not, an error occurs in accordance with the “incorrect structure”. I am confused by the fact that in my project it requires .NET 3.5 SP1. I suspect that this is only the frame on which my computer is turned on ... Is there a way to expand the framework on which it will work?

This is mainly the Win32 API code. Just in case, here are my dependencies and #includes:

gdiplus.lib
comctl32.lib
Winmm.lib
d3d9.lib

(The installation project automatically adds comdlg32.dll, and then says that I exclude it.)

#include <windows.h>
#include <tchar.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <string.h>

#include <commctrl.h>
#include <process.h>
#include <sstream>
#include <math.h>
#include <d3d9.h>
#include <time.h>
#include <gdiplus.h>

I assume that somewhere through windows.h there is a version of WIN_VER or a similar version installed on .NET 3.5 SP1, and that is where the dependency arises. If this is the case, and I need to determine a different version, I would love to hear how all the tips on do / don'ts / and how-to are and how far back I can go for maximum inclusion.

+5
source share
4 answers

In VS 2008, the default target platform is .NET 3.5.

++ " " " ", , , , , .

++ 2.0 " ", 2.0 "Targeted Framework".

, , , .

: , - (!)

3.0 3.5? , 2.0. , . , , . , 3.5, .

+3

? ( → ; " " ).

, , .NET ( , , ++ .)

+3

, , Prerequistes, ... , , .NET 3.5.

, vdproj slickedit .

    "ExternalPersistence"
    {
        "LaunchCondition"
        {
            "{A06ECF26-33A3-4562-8140-9B0E340D4F24}:_38ABBBBC51344AFFA38F2922DFFFE5B5"
            {
            "Name" = "8:.NET Framework"
            "Message" = "8:[VSDNETMSG]"
            "Version" = "8:3.5.30729"
            "AllowLaterVersions" = "11:FALSE"
            "InstallUrl" = "8:http://go.microsoft.com/fwlink/?LinkId=76617"
            }
        }
    }

    "ExternalPersistence"
    {
    }

.NET 3.5

+3

, #, "", "". ++ - .

0

All Articles