Skip to content

Commit addfbf7

Browse files
committed
Very large commit ;-)
* Fixed Razor intellisense for plugin projects (NOTE: switch to 'PluginDev' configuration while editing plugin views, switch back when finished) * Updated some 3rd party libraries to their latest versions * WebApi: implemented WebApiEntityController properties auto injection
1 parent 27193ad commit addfbf7

116 files changed

Lines changed: 2141 additions & 1962 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

SmartStoreNET.Tasks.Targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<BuildPlatform Condition="$(BuildPlatform) == ''">x86</BuildPlatform>
4545

4646
<xVersion>$(BUILD_NUMBER)</xVersion>
47-
<Version>2.0.0</Version>
47+
<Version>2.0.1</Version>
4848
<ZipDirectory>$(StageFolder)</ZipDirectory>
4949
<ZipVersionFileSuffix Condition="$(Version) != ''">.$(Version)</ZipVersionFileSuffix>
5050
<ZipVersionFileSuffix Condition="$(Version) == ''"></ZipVersionFileSuffix>

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@
55
###New Features###
66
* #292 Allow specific price for attribute combinations
77
* Added image upload support to Summernote editor
8+
* (Developer) Added WebApi client test tools to the solution (C# and JavaScript)
89

910
###Improvements###
1011
* Content slider slides can be filtered by store
1112
* TinyMCE now shows advanced tab for images
1213
* Updated BundleTransformer to the latest version 1.8.25
1314
* Added JavaScriptEngineSwitcher.Msie (disabled by default). Useful in scenarios where target server has problems calling the V8 native libs.
15+
* Updated some 3rd party libraries to their latest versions
1416

1517
###Bugfixes###
1618
* UI notifications get displayed repeatedly
19+
* (Developer) Fixed Razor intellisense for plugin projects (NOTE: switch to 'PluginDev' configuration while editing plugin views, switch back when finished)
1720

1821

1922
##SmartStore.NET 2.0.0#

src/AssemblyVersionInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
[assembly: AssemblyVersion("2.0.0.0")]
1313

1414
[assembly: AssemblyFileVersion("2.0.0.0")]
15-
[assembly: AssemblyInformationalVersion("2.0.0.0")]
15+
[assembly: AssemblyInformationalVersion("2.0.1.0")]

src/FixRazorIntellisense.targets

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
3+
4+
<PropertyGroup>
5+
<CopyAllDependencies Condition="'$(CopyAllDependencies)'==''">true</CopyAllDependencies>
6+
</PropertyGroup>
7+
8+
9+
<!-- BuildXxx part -->
10+
11+
<Target Name="CopyAllDependencies" Condition="'$(CopyAllDependencies)'=='true'" DependsOnTargets="DetectAllDependencies">
12+
<Copy Condition="'%(IndirectDependency.FullPath)'!=''"
13+
SourceFiles="%(IndirectDependency.FullPath)"
14+
DestinationFolder="$(OutputPath)"
15+
SkipUnchangedFiles="true" >
16+
<Output TaskParameter="CopiedFiles" ItemName="IndirectDependencyCopied" />
17+
</Copy>
18+
<Message Importance="low"
19+
Condition="'%(IndirectDependencyCopied.FullPath)'!=''
20+
and '%(IndirectDependencyCopied.Extension)'!='.pdb'
21+
and '%(IndirectDependencyCopied.Extension)'!='.xml'"
22+
Text="Indirect dependency copied: %(IndirectDependencyCopied.FullPath)" />
23+
</Target>
24+
25+
<Target Name="DetectAllDependencies" DependsOnTargets="ResolveAssemblyReferences">
26+
27+
<Message Importance="low" Text="Direct dependency: %(ReferencePath.Filename)%(ReferencePath.Extension)" />
28+
<Message Importance="low" Text="Direct dependency: %(ReferencePath.FullPath).Contains('.NETFramework')=='True'" />
29+
30+
<!-- Creating dependency list -->
31+
<CreateItem Include="%(ReferencePath.FullPath)" Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('%(ReferencePath.FullPath)', '(?i)(.*?)(mscorlib|System|System\.Web|xxxSystem\.Core|System\.Xml)\.dll')) != 'True'">
32+
<Output TaskParameter="Include" ItemName="_IndirectDependency"/>
33+
</CreateItem>
34+
35+
<!-- Filtering dependency list by existence -->
36+
<CreateItem Include="%(_IndirectDependency.FullPath)" Condition="Exists('%(_IndirectDependency.FullPath)')">
37+
<Output TaskParameter="Include" ItemName="IndirectDependency"/>
38+
</CreateItem>
39+
40+
<!-- Creating copied indirect dependency list -->
41+
<CreateItem Include="@(_IndirectDependency->'$(OutputPath)%(Filename)%(Extension)')">
42+
<Output TaskParameter="Include" ItemName="_ExistingIndirectDependency"/>
43+
</CreateItem>
44+
45+
<!-- Filtering copied indirect dependency list by existence -->
46+
<CreateItem Include="%(_ExistingIndirectDependency.FullPath)" Condition="Exists('%(_ExistingIndirectDependency.FullPath)')">
47+
<Output TaskParameter="Include" ItemName="ExistingIndirectDependency"/>
48+
</CreateItem>
49+
50+
</Target>
51+
52+
53+
<!-- Build sequence modification -->
54+
55+
<PropertyGroup>
56+
<CoreBuildDependsOn>
57+
$(CoreBuildDependsOn);
58+
CopyAllDependencies
59+
</CoreBuildDependsOn>
60+
</PropertyGroup>
61+
62+
</Project>

src/Libraries/SmartStore.Core/SmartStore.Core.csproj

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,23 @@
4848
<ErrorReport>prompt</ErrorReport>
4949
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
5050
</PropertyGroup>
51+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'PluginDev|AnyCPU'">
52+
<DebugSymbols>true</DebugSymbols>
53+
<OutputPath>bin\PluginDev\</OutputPath>
54+
<DefineConstants>DEBUG;TRACE</DefineConstants>
55+
<DebugType>full</DebugType>
56+
<PlatformTarget>AnyCPU</PlatformTarget>
57+
<ErrorReport>prompt</ErrorReport>
58+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
59+
</PropertyGroup>
5160
<ItemGroup>
52-
<Reference Include="Autofac, Version=3.0.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da, processorArchitecture=MSIL">
61+
<Reference Include="Autofac, Version=3.3.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da, processorArchitecture=MSIL">
5362
<SpecificVersion>False</SpecificVersion>
54-
<HintPath>..\..\packages\Autofac.3.3.0\lib\net40\Autofac.dll</HintPath>
63+
<HintPath>..\..\packages\Autofac.3.3.1\lib\net40\Autofac.dll</HintPath>
5564
</Reference>
56-
<Reference Include="Autofac.Integration.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da, processorArchitecture=MSIL">
65+
<Reference Include="Autofac.Integration.Mvc, Version=3.2.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da, processorArchitecture=MSIL">
5766
<SpecificVersion>False</SpecificVersion>
58-
<HintPath>..\..\packages\Autofac.Mvc5.3.2.0\lib\net45\Autofac.Integration.Mvc.dll</HintPath>
67+
<HintPath>..\..\packages\Autofac.Mvc5.3.2.1\lib\net45\Autofac.Integration.Mvc.dll</HintPath>
5968
</Reference>
6069
<Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
6170
<SpecificVersion>False</SpecificVersion>
@@ -98,27 +107,27 @@
98107
<Reference Include="System.Web" />
99108
<Reference Include="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
100109
<SpecificVersion>False</SpecificVersion>
101-
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.3.1.1\lib\net45\System.Web.Helpers.dll</HintPath>
110+
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.Helpers.dll</HintPath>
102111
</Reference>
103112
<Reference Include="System.Web.Mvc, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
104113
<SpecificVersion>False</SpecificVersion>
105-
<HintPath>..\..\packages\Microsoft.AspNet.Mvc.5.1.1\lib\net45\System.Web.Mvc.dll</HintPath>
114+
<HintPath>..\..\packages\Microsoft.AspNet.Mvc.5.1.2\lib\net45\System.Web.Mvc.dll</HintPath>
106115
</Reference>
107116
<Reference Include="System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
108117
<SpecificVersion>False</SpecificVersion>
109-
<HintPath>..\..\packages\Microsoft.AspNet.Razor.3.1.1\lib\net45\System.Web.Razor.dll</HintPath>
118+
<HintPath>..\..\packages\Microsoft.AspNet.Razor.3.1.2\lib\net45\System.Web.Razor.dll</HintPath>
110119
</Reference>
111120
<Reference Include="System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
112121
<SpecificVersion>False</SpecificVersion>
113-
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.3.1.1\lib\net45\System.Web.WebPages.dll</HintPath>
122+
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.WebPages.dll</HintPath>
114123
</Reference>
115124
<Reference Include="System.Web.WebPages.Deployment, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
116125
<SpecificVersion>False</SpecificVersion>
117-
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.3.1.1\lib\net45\System.Web.WebPages.Deployment.dll</HintPath>
126+
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.WebPages.Deployment.dll</HintPath>
118127
</Reference>
119128
<Reference Include="System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
120129
<SpecificVersion>False</SpecificVersion>
121-
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.3.1.1\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
130+
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
122131
</Reference>
123132
<Reference Include="System.Xml.Linq" />
124133
<Reference Include="System.Data.DataSetExtensions" />

src/Libraries/SmartStore.Core/packages.config

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Autofac" version="3.3.0" targetFramework="net45" />
4-
<package id="Autofac.Mvc5" version="3.2.0" targetFramework="net45" />
3+
<package id="Autofac" version="3.3.1" targetFramework="net45" />
4+
<package id="Autofac.Mvc5" version="3.2.1" targetFramework="net45" />
55
<package id="EntityFramework" version="6.1.0" targetFramework="net45" />
66
<package id="fasterflect" version="2.1.3" targetFramework="net45" />
7-
<package id="Microsoft.AspNet.Mvc" version="5.1.1" targetFramework="net45" />
8-
<package id="Microsoft.AspNet.Razor" version="3.1.1" targetFramework="net45" />
9-
<package id="Microsoft.AspNet.WebPages" version="3.1.1" targetFramework="net45" />
7+
<package id="Microsoft.AspNet.Mvc" version="5.1.2" targetFramework="net45" />
8+
<package id="Microsoft.AspNet.Razor" version="3.1.2" targetFramework="net45" />
9+
<package id="Microsoft.AspNet.WebPages" version="3.1.2" targetFramework="net45" />
1010
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
1111
<package id="Microsoft.Web.Xdt" version="1.0.0" targetFramework="net45" />
1212
<package id="Newtonsoft.Json" version="6.0.1" targetFramework="net45" />

src/Libraries/SmartStore.Data/SmartStore.Data.csproj

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,19 @@
4848
<ErrorReport>prompt</ErrorReport>
4949
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
5050
</PropertyGroup>
51+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'PluginDev|AnyCPU'">
52+
<DebugSymbols>true</DebugSymbols>
53+
<OutputPath>bin\PluginDev\</OutputPath>
54+
<DefineConstants>DEBUG;TRACE</DefineConstants>
55+
<DebugType>full</DebugType>
56+
<PlatformTarget>AnyCPU</PlatformTarget>
57+
<ErrorReport>prompt</ErrorReport>
58+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
59+
</PropertyGroup>
5160
<ItemGroup>
52-
<Reference Include="Autofac, Version=3.0.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da, processorArchitecture=MSIL">
61+
<Reference Include="Autofac, Version=3.3.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da, processorArchitecture=MSIL">
5362
<SpecificVersion>False</SpecificVersion>
54-
<HintPath>..\..\packages\Autofac.3.3.0\lib\net40\Autofac.dll</HintPath>
63+
<HintPath>..\..\packages\Autofac.3.3.1\lib\net40\Autofac.dll</HintPath>
5564
</Reference>
5665
<Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
5766
<SpecificVersion>False</SpecificVersion>

src/Libraries/SmartStore.Data/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Autofac" version="3.3.0" targetFramework="net45" />
3+
<package id="Autofac" version="3.3.1" targetFramework="net45" />
44
<package id="EntityFramework" version="6.1.0" targetFramework="net45" />
55
<package id="EntityFramework.SqlServerCompact" version="6.1.0" targetFramework="net45" />
66
<package id="Microsoft.SqlServer.Compact" version="4.0.8876.1" targetFramework="net45" />

src/Libraries/SmartStore.Services/Catalog/ProductService.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ public partial class ProductService : IProductService
5656
private readonly CommonSettings _commonSettings;
5757
private readonly IEventPublisher _eventPublisher;
5858

59-
private List<int> _allowedRoleIds;
60-
6159
#endregion
6260

6361
#region Ctor

src/Libraries/SmartStore.Services/SmartStore.Services.csproj

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,19 @@
4848
<ErrorReport>prompt</ErrorReport>
4949
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
5050
</PropertyGroup>
51+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'PluginDev|AnyCPU'">
52+
<DebugSymbols>true</DebugSymbols>
53+
<OutputPath>bin\PluginDev\</OutputPath>
54+
<DefineConstants>DEBUG;TRACE</DefineConstants>
55+
<DebugType>full</DebugType>
56+
<PlatformTarget>AnyCPU</PlatformTarget>
57+
<ErrorReport>prompt</ErrorReport>
58+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
59+
</PropertyGroup>
5160
<ItemGroup>
52-
<Reference Include="Autofac, Version=3.0.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da, processorArchitecture=MSIL">
61+
<Reference Include="Autofac, Version=3.3.0.0, Culture=neutral, PublicKeyToken=17863af14b0044da, processorArchitecture=MSIL">
5362
<SpecificVersion>False</SpecificVersion>
54-
<HintPath>..\..\packages\Autofac.3.3.0\lib\net40\Autofac.dll</HintPath>
63+
<HintPath>..\..\packages\Autofac.3.3.1\lib\net40\Autofac.dll</HintPath>
5564
</Reference>
5665
<Reference Include="EPPlus, Version=3.1.3.0, Culture=neutral, PublicKeyToken=ea159fdaa78159a1, processorArchitecture=MSIL">
5766
<SpecificVersion>False</SpecificVersion>
@@ -97,28 +106,28 @@
97106
<Reference Include="System.Web" />
98107
<Reference Include="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
99108
<SpecificVersion>False</SpecificVersion>
100-
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.3.1.1\lib\net45\System.Web.Helpers.dll</HintPath>
109+
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.Helpers.dll</HintPath>
101110
</Reference>
102111
<Reference Include="System.Web.Mvc, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
103112
<SpecificVersion>False</SpecificVersion>
104-
<HintPath>..\..\packages\Microsoft.AspNet.Mvc.5.1.1\lib\net45\System.Web.Mvc.dll</HintPath>
113+
<HintPath>..\..\packages\Microsoft.AspNet.Mvc.5.1.2\lib\net45\System.Web.Mvc.dll</HintPath>
105114
</Reference>
106115
<Reference Include="System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
107116
<SpecificVersion>False</SpecificVersion>
108-
<HintPath>..\..\packages\Microsoft.AspNet.Razor.3.1.1\lib\net45\System.Web.Razor.dll</HintPath>
117+
<HintPath>..\..\packages\Microsoft.AspNet.Razor.3.1.2\lib\net45\System.Web.Razor.dll</HintPath>
109118
</Reference>
110119
<Reference Include="System.Web.Services" />
111120
<Reference Include="System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
112121
<SpecificVersion>False</SpecificVersion>
113-
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.3.1.1\lib\net45\System.Web.WebPages.dll</HintPath>
122+
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.WebPages.dll</HintPath>
114123
</Reference>
115124
<Reference Include="System.Web.WebPages.Deployment, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
116125
<SpecificVersion>False</SpecificVersion>
117-
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.3.1.1\lib\net45\System.Web.WebPages.Deployment.dll</HintPath>
126+
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.WebPages.Deployment.dll</HintPath>
118127
</Reference>
119128
<Reference Include="System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
120129
<SpecificVersion>False</SpecificVersion>
121-
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.3.1.1\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
130+
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
122131
</Reference>
123132
<Reference Include="System.Xml.Linq" />
124133
<Reference Include="System.Data.DataSetExtensions" />

0 commit comments

Comments
 (0)