mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
While demanding c++ language standard c++20, the error of OCCTProxy compilation is occured: warning C4857: C++/CLI mode does not support C++ versions newer than C++17; setting language to /std:c++17 error C7681: two-phase name lookup is not supported for C++/CLI or C++/CX; use /Zc:twoPhase- Officially, C++/CLI mode does not support C++ version newer than C++17, so we should not demand C++20 to compile csharp samples. Alternative solution - using /permissive (ConformanceMode = false), rather than default value /permissive- (ConformanceMode = true) option to compile OCCTProxy. But alternative solution has been denied. So, here is nothing to do to fix compilation of OCCTProxy project. Nevertheless, error occures in IE_WPF_WinForms and IE_WinForms - if we trying to compile with VC++ 2022 (not demanding c++20): warning MSB3274: The primary reference "*\OCCTProxy.dll" could not be resolved because it was built against the ".NETFramework,Version=v4.7.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0". To solve the problem it is proposed to demand by default the highest version of NETFramework - 4.8. So, demanding NETFramework v4.8 does not crashing compilation of csharp samples with VC++ 2015.
233 lines
8.8 KiB
XML
233 lines
8.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
|
<PropertyGroup>
|
|
<ProjectType>Local</ProjectType>
|
|
<ProductVersion>9.0.30729</ProductVersion>
|
|
<SchemaVersion>2.0</SchemaVersion>
|
|
<ProjectGuid>{B9914BB3-B886-4B41-B48D-350EBEBEFD1F}</ProjectGuid>
|
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
<ApplicationIcon>App.ico</ApplicationIcon>
|
|
<AssemblyKeyContainerName>
|
|
</AssemblyKeyContainerName>
|
|
<AssemblyName>IE_WinForms</AssemblyName>
|
|
<AssemblyOriginatorKeyFile>
|
|
</AssemblyOriginatorKeyFile>
|
|
<DefaultClientScript>JScript</DefaultClientScript>
|
|
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
|
|
<DefaultTargetSchema>IE50</DefaultTargetSchema>
|
|
<DelaySign>false</DelaySign>
|
|
<OutputType>WinExe</OutputType>
|
|
<RootNamespace>IE_WinForms</RootNamespace>
|
|
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
|
|
<StartupObject>
|
|
</StartupObject>
|
|
<FileUpgradeFlags>
|
|
</FileUpgradeFlags>
|
|
<UpgradeBackupLocation>
|
|
</UpgradeBackupLocation>
|
|
<OldToolsVersion>3.5</OldToolsVersion>
|
|
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
|
<TargetFrameworkProfile />
|
|
<PublishUrl>publish\</PublishUrl>
|
|
<Install>true</Install>
|
|
<InstallFrom>Disk</InstallFrom>
|
|
<UpdateEnabled>false</UpdateEnabled>
|
|
<UpdateMode>Foreground</UpdateMode>
|
|
<UpdateInterval>7</UpdateInterval>
|
|
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
|
<UpdatePeriodically>false</UpdatePeriodically>
|
|
<UpdateRequired>false</UpdateRequired>
|
|
<MapFileExtensions>true</MapFileExtensions>
|
|
<ApplicationRevision>0</ApplicationRevision>
|
|
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
|
<IsWebBootstrapper>false</IsWebBootstrapper>
|
|
<UseApplicationTrust>false</UseApplicationTrust>
|
|
<BootstrapperEnabled>true</BootstrapperEnabled>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
<OutputPath>bin\Debug\</OutputPath>
|
|
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
|
<BaseAddress>285212672</BaseAddress>
|
|
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
|
<ConfigurationOverrideFile>
|
|
</ConfigurationOverrideFile>
|
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
<DocumentationFile>
|
|
</DocumentationFile>
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<FileAlignment>4096</FileAlignment>
|
|
<NoStdLib>false</NoStdLib>
|
|
<NoWarn>
|
|
</NoWarn>
|
|
<Optimize>false</Optimize>
|
|
<RegisterForComInterop>false</RegisterForComInterop>
|
|
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
|
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
|
<WarningLevel>4</WarningLevel>
|
|
<DebugType>full</DebugType>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
<OutputPath>bin\Release\</OutputPath>
|
|
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
|
<BaseAddress>285212672</BaseAddress>
|
|
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
|
|
<ConfigurationOverrideFile>
|
|
</ConfigurationOverrideFile>
|
|
<DefineConstants>TRACE</DefineConstants>
|
|
<DocumentationFile>
|
|
</DocumentationFile>
|
|
<DebugSymbols>false</DebugSymbols>
|
|
<FileAlignment>4096</FileAlignment>
|
|
<NoStdLib>false</NoStdLib>
|
|
<NoWarn>
|
|
</NoWarn>
|
|
<Optimize>true</Optimize>
|
|
<RegisterForComInterop>false</RegisterForComInterop>
|
|
<RemoveIntegerChecks>false</RemoveIntegerChecks>
|
|
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
|
<WarningLevel>4</WarningLevel>
|
|
<DebugType>none</DebugType>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
|
<PlatformTarget>x86</PlatformTarget>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<OutputPath>..\win32\$(VCVER)\bind\</OutputPath>
|
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
<BaseAddress>285212672</BaseAddress>
|
|
<DebugType>full</DebugType>
|
|
<PlatformTarget>x86</PlatformTarget>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
|
<OutputPath>..\win32\$(VCVER)\bin\</OutputPath>
|
|
<DefineConstants>TRACE</DefineConstants>
|
|
<BaseAddress>285212672</BaseAddress>
|
|
<Optimize>true</Optimize>
|
|
<DebugType>
|
|
</DebugType>
|
|
<PlatformTarget>x86</PlatformTarget>
|
|
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<OutputPath>..\win64\$(VCVER)\bind\</OutputPath>
|
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
<BaseAddress>285212672</BaseAddress>
|
|
<FileAlignment>4096</FileAlignment>
|
|
<DebugType>full</DebugType>
|
|
<PlatformTarget>x64</PlatformTarget>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
|
|
<OutputPath>..\win64\$(VCVER)\bin\</OutputPath>
|
|
<DefineConstants>TRACE</DefineConstants>
|
|
<BaseAddress>285212672</BaseAddress>
|
|
<Optimize>true</Optimize>
|
|
<FileAlignment>4096</FileAlignment>
|
|
<PlatformTarget>x64</PlatformTarget>
|
|
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<Reference Include="System">
|
|
<Name>System</Name>
|
|
</Reference>
|
|
<Reference Include="System.Configuration" />
|
|
<Reference Include="System.Data">
|
|
<Name>System.Data</Name>
|
|
</Reference>
|
|
<Reference Include="System.Drawing">
|
|
<Name>System.Drawing</Name>
|
|
</Reference>
|
|
<Reference Include="System.Web.Extensions" />
|
|
<Reference Include="System.Windows.Forms">
|
|
<Name>System.Windows.Forms</Name>
|
|
</Reference>
|
|
<Reference Include="System.Xml">
|
|
<Name>System.XML</Name>
|
|
</Reference>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Compile Include="AboutDialog.cs">
|
|
<SubType>Form</SubType>
|
|
</Compile>
|
|
<Compile Include="AssemblyInfo.cs">
|
|
<SubType>Code</SubType>
|
|
</Compile>
|
|
<Compile Include="Form1.cs">
|
|
<SubType>Form</SubType>
|
|
</Compile>
|
|
<Compile Include="Form2.cs">
|
|
<SubType>Form</SubType>
|
|
</Compile>
|
|
<Compile Include="MaterialDialog.cs">
|
|
<SubType>Form</SubType>
|
|
</Compile>
|
|
<Compile Include="TransparencyDialog.cs">
|
|
<SubType>Form</SubType>
|
|
</Compile>
|
|
<EmbeddedResource Include="AboutDialog.resx">
|
|
<DependentUpon>AboutDialog.cs</DependentUpon>
|
|
<SubType>Designer</SubType>
|
|
</EmbeddedResource>
|
|
<EmbeddedResource Include="Form1.resx">
|
|
<DependentUpon>Form1.cs</DependentUpon>
|
|
<SubType>Designer</SubType>
|
|
</EmbeddedResource>
|
|
<EmbeddedResource Include="Form2.resx">
|
|
<DependentUpon>Form2.cs</DependentUpon>
|
|
<SubType>Designer</SubType>
|
|
</EmbeddedResource>
|
|
<EmbeddedResource Include="MaterialDialog.resx">
|
|
<DependentUpon>MaterialDialog.cs</DependentUpon>
|
|
<SubType>Designer</SubType>
|
|
</EmbeddedResource>
|
|
<EmbeddedResource Include="TransparencyDialog.resx">
|
|
<DependentUpon>TransparencyDialog.cs</DependentUpon>
|
|
<SubType>Designer</SubType>
|
|
</EmbeddedResource>
|
|
<None Include="app.config" />
|
|
<Content Include="App.ico" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\OCCTProxy\OCCTProxy.vcxproj">
|
|
<Project>{969912D9-78E7-4AB8-B4FF-6B52B4F03991}</Project>
|
|
<Name>OCCTProxy</Name>
|
|
</ProjectReference>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<BootstrapperPackage Include=".NETFramework,Version=v4.0">
|
|
<Visible>False</Visible>
|
|
<ProductName>Microsoft .NET Framework 4 %28x86 and x64%29</ProductName>
|
|
<Install>true</Install>
|
|
</BootstrapperPackage>
|
|
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
|
<Visible>False</Visible>
|
|
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
|
|
<Install>false</Install>
|
|
</BootstrapperPackage>
|
|
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
|
<Visible>False</Visible>
|
|
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
|
<Install>false</Install>
|
|
</BootstrapperPackage>
|
|
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
|
|
<Visible>False</Visible>
|
|
<ProductName>Windows Installer 3.1</ProductName>
|
|
<Install>true</Install>
|
|
</BootstrapperPackage>
|
|
</ItemGroup>
|
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
|
<PropertyGroup>
|
|
<PreBuildEvent>
|
|
</PreBuildEvent>
|
|
<PostBuildEvent>
|
|
</PostBuildEvent>
|
|
</PropertyGroup>
|
|
</Project> |