PDA

View Full Version : [CLOSED] Build without Mvc



slavina
Jan 02, 2015, 8:23 AM
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.

Vladimir
Jan 02, 2015, 9:32 AM
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

slavina
Jan 02, 2015, 9:45 AM
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 :

18112

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?

Vladimir
Jan 02, 2015, 10:17 AM
<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>

slavina
Jan 02, 2015, 1:45 PM
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