[CLOSED] Build without Mvc

  1. #1

    [CLOSED] Build without Mvc

    Hi,

    I'm trying to build the last v2.5 version of Ext.Net but I have a problem to build it.

    I found that the v2 version build requires MVC 3 to be installed on the machine.
    We don't want to install it on our server and we only use WebForm so we are trying to make a WebForm build without MVC at all.

    I choose a build mode "WebForm NET4 Release" in the properties of Ext Net with these conditionnals "MVC MVC3" but when i try to build, I have an error on "MvcItemBuilder.cs" :
    "Erreur 2 Le type 'Ext.Net.MvcItem.Builder' non g?n?rique ne peut pas ?tre utilis? avec des arguments de type"

    Sorry for the french, but I don't want to make mistakes on the traduction.
    Last edited by Daniil; Jan 05, 2015 at 10:43 AM. Reason: [CLOSED]
  2. #2
    Hi

    MvcItemBuilder.cs file is used in MVC configuration modes only. If you open Ext.Net.csproj then you will see that the file inside conditional group 'Condition="'$(MVC)' == '1'"'

    I checked WebForm NET40 Release mode with latest v2 code (from http://svn.ext.net/premium/branches/2) and it is compiled correctly
  3. #3
    I took the latest v2 code too.

    I have this in the csproj

      <ItemGroup Condition="'$(MVC)' == '1'">
        <Compile Include="Ext\Data\ModelStateStore.cs" />
        <Compile Include="Factory\Builder\ModelStateStoreBuilder.cs" />
        <Compile Include="Factory\Builder\MvcItemBuilder.cs" />
        <Compile Include="Factory\ConfigOptions\MvcItemConfigOptions.cs" />
        <Compile Include="Factory\Config\ModelStateStoreConfig.cs" />
        <Compile Include="Factory\Config\MvcItemConfig.cs" />
        <Compile Include="Ext\Container\MvcItem.cs" />
      </ItemGroup>
    And my config :

    Click image for larger version. 

Name:	Capture.PNG 
Views:	7 
Size:	10.7 KB 
ID:	18112

    Click image for larger version. 

Name:	Capture2.PNG 
Views:	8 
Size:	32.7 KB 
ID:	18121

    EDIT :

    <Compile Include="Factory\Builder\MvcItemBuilder.cs" /> is good, but I have 2 MvcItemBuilder.cs in the source code, the other one is in Ext.Net/MVC/Factory/MvcItemBuilder.cs

    Do I have to add this path too?
    Last edited by slavina; Jan 02, 2015 at 10:06 AM.
  4. #4
    <Compile Include="Factory\Builder\MvcItemBuilder.cs" /> is good, but I have 2 MvcItemBuilder.cs in the source code, the other one is in Ext.Net/MVC/Factory/MvcItemBuilder.cs

    Do I have to add this path too?
    No, second one inside conditional group also. The problem that somehow MVC constants is defined for WebForm mode in your csproj file.
    In SVN, only the following constants are defined for 'WebForm NET40 Release'
    <DefineConstants>TRACE;NET40</DefineConstants>
  5. #5
    I deleted my version and I downloaded again v2.5 version and it works fine with webForm release!
    Perhaps I excluded a folder once and rights have been deleted.

    You can mark it as solved!
    Thanks

Similar Threads

  1. [CLOSED] Can not build Trunk with .NET35 build configuration
    By jchau in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 24, 2012, 2:20 PM
  2. How to Build a Form using Ext.Net
    By nagesh in forum 2.x Help
    Replies: 0
    Last Post: Oct 10, 2012, 7:23 AM
  3. Build new MVC 3 website
    By nilibek in forum 1.x Help
    Replies: 0
    Last Post: Feb 09, 2012, 2:50 PM
  4. [CLOSED] [1.0] how to build the ext.net
    By webclouder in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 11, 2011, 7:18 PM
  5. [1.0] Ext.Net.MVC build error
    By Dominik in forum 1.x Help
    Replies: 0
    Last Post: Apr 16, 2010, 4:07 AM

Posting Permissions