.NET4 Source Build

6 posts, 0 answers
  1. AdrianG
    AdrianG avatar
    17 posts
    Member since:
    Jun 2013

    Posted 17 Mar 2014 Link to this post

    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
  2. George
    Admin
    George avatar
    500 posts

    Posted 20 Mar 2014 Link to this post

    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.

     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. AdrianG
    AdrianG avatar
    17 posts
    Member since:
    Jun 2013

    Posted 20 Mar 2014 in reply to George Link to this post

    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
  5. George
    Admin
    George avatar
    500 posts

    Posted 25 Mar 2014 Link to this post

    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.

     
  6. AdrianG
    AdrianG avatar
    17 posts
    Member since:
    Jun 2013

    Posted 25 Mar 2014 in reply to George Link to this post

    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
  7. George
    Admin
    George avatar
    500 posts

    Posted 27 Mar 2014 Link to this post

    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.

     
Back to Top
UI for WinForms is Visual Studio 2017 Ready