This is a migrated thread and some comments may be shown as answers.

.NET4 Source Build

5 Answers 33 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
AdrianG
Top achievements
Rank 1
AdrianG asked on 17 Mar 2014, 11:49 AM
Hi

We build Telerik assemblies from source for redistribution as per your instructions here. In the VS2010 Release40 configuration the target framework is .NET Framework 2.0 by default.

Should we be changing the target framework to .NET Framework 4.0 in Release40 configuration prior to building? The reason I ask is twofold:

1) Would it be good practice in general?
2) We use Ngen as part of our application installation. If this is done on a machine without .NET2 installed (i.e. just .NET4 installed) the Ngen fails because it fails to find .NET2 dependencies.

Many thanks.

Adrian

5 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 20 Mar 2014, 10:52 AM
Hello AdrianG,

Thank you for contacting us.

Yes, when you change the build configuration to Release40, the Target Framework appears to be .NET 2 in the properties window of the project. However, since we are using custom build configurations as the following:
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release40|AnyCPU'">
  <OutputPath>..\..\bin\Release\net40\</OutputPath>
  <DocumentationFile>..\..\bin\Release\net40\Telerik.WinControls.XML</DocumentationFile>
  <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  <TargetFrameworkProfile>Client</TargetFrameworkProfile>
  <CustomConstants Condition=" '$(TargetFrameworkVersion)' == 'v2.0' ">NET2</CustomConstants>
  <CustomConstants Condition=" '$(TargetFrameworkVersion)' == 'v4.0' ">NET4</CustomConstants>
  <DefineConstants Condition=" '$(DefineConstants)' != '' And '$(CustomConstants)' != '' ">$(DefineConstants);</DefineConstants>
  <DefineConstants>$(DefineConstants)$(CustomConstants)</DefineConstants>
</PropertyGroup>

The assemblies are actually being build for .NET 4. You can see that in the following folder:
..\..\bin\Release\net40

Then, you can open an assembly with a decompiler software (such as JustDecompile) and see its target framework (see attached image).

As to your troubles with Ngen - after building the assemblies in the above said manner, they have no dependency for .NET 2 and there should not be any issues concerning that matter.

Let me know if you require further assistance.

Regards,
George
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
AdrianG
Top achievements
Rank 1
answered on 20 Mar 2014, 12:11 PM
Thanks very much for this information George.

I've tried to install JustDecompile at work but it's failing due to security/proxy settings. Is there an offline installer available?

Adrian
0
George
Telerik team
answered on 25 Mar 2014, 09:14 AM
Hi Adrian,

Thank you for replying.

For offline installer for Just Decompile you can refer to the following forum post: Offline installer - General Discussions - JustDecompile Forum.

Let me know if you have further questions.

Regards,
George
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
AdrianG
Top achievements
Rank 1
answered on 25 Mar 2014, 09:27 AM
Thanks George.

Yes, I did read through that forum but experience the same problem as most other posts there. I am not able to navigate to the offline installer (i.e. broken links & insufficient privilege).

The final message from Petar on 05 Mar seemed to work - would you be able to add a link to Just Decompile to my "My Products" page?

Many thanks.

Adrian
0
George
Telerik team
answered on 27 Mar 2014, 02:46 PM
Hi Adrian,

Thank you for your reply.

The JustDecompile team has pointed me towards a more recent thread regarding this matter. You can find it here. You can download the offline installer for the latest version of JustDecompile from the link which Vladi has given.

I hope this will help.

Regards,
George
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
General Discussions
Asked by
AdrianG
Top achievements
Rank 1
Answers by
George
Telerik team
AdrianG
Top achievements
Rank 1
Share this question
or