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
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
0
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:
The assemblies are actually being build for .NET 4. You can see that in the following folder:
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
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
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
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
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
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
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
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.