File tree Expand file tree Collapse file tree 4 files changed +65
-9
lines changed
src/Umbraco.Cms.Integrations.Crm.Dynamics Expand file tree Collapse file tree 4 files changed +65
-9
lines changed Original file line number Diff line number Diff line change 1
1
#if NETCOREAPP
2
+ using Microsoft . Extensions . DependencyInjection ;
3
+
2
4
using Umbraco . Cms . Core . Composing ;
3
5
using Umbraco . Cms . Core . DependencyInjection ;
4
-
5
- using Microsoft . Extensions . DependencyInjection ;
6
6
using Umbraco . Cms . Integrations . Crm . Dynamics . Configuration ;
7
7
using Umbraco . Cms . Integrations . Crm . Dynamics . Services ;
8
+ using Umbraco . Cms . Core . Notifications ;
9
+ using Umbraco . Cms . Integrations . Crm . Dynamics . Migrations ;
8
10
#else
9
11
using Umbraco . Cms . Integrations . Crm . Dynamics . Services ;
10
12
using Umbraco . Core ;
@@ -21,6 +23,8 @@ public void Compose(IUmbracoBuilder builder)
21
23
var options = builder . Services . AddOptions < DynamicsSettings > ( )
22
24
. Bind ( builder . Config . GetSection ( Constants . Configuration . Settings ) ) ;
23
25
26
+ builder . AddNotificationHandler < UmbracoApplicationStartingNotification , UmbracoAppStartingHandler > ( ) ;
27
+
24
28
builder . Services . AddSingleton < IAuthorizationService , AuthorizationService > ( ) ;
25
29
26
30
builder . Services . AddSingleton < DynamicsService > ( ) ;
Original file line number Diff line number Diff line change 20
20
<PackageReference Include =" UmbracoCms.Web" version =" 8.4.0" />
21
21
</ItemGroup >
22
22
23
- <ItemGroup Condition =" '$(TargetFramework)' == 'net50'" >
23
+ <ItemGroup Condition =" '$(TargetFramework)' == 'net50' Or '$(TargetFramework)' == 'net60' " >
24
24
<PackageReference Include =" Umbraco.Cms.Web.Website" version =" 9.0.1" />
25
25
<PackageReference Include =" Umbraco.Cms.Web.BackOffice" version =" 9.0.1" />
26
26
<PackageReference Include =" Umbraco.Cms.Web.Common" version =" 9.0.1" />
27
27
</ItemGroup >
28
-
29
- <ItemGroup Condition =" '$(TargetFramework)' == 'net60'" >
30
- <PackageReference Include =" Umbraco.Cms.Web.Website" version =" 10.0.1" />
31
- <PackageReference Include =" Umbraco.Cms.Web.BackOffice" version =" 10.0.1" />
32
- <PackageReference Include =" Umbraco.Cms.Web.Common" version =" 10.0.1" />
33
- </ItemGroup >
34
28
35
29
<ItemGroup >
36
30
<Content Include =" App_Plugins\UmbracoCms.Integrations\Crm\Dynamics\**\*.*" >
Original file line number Diff line number Diff line change
1
+ <Project xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
2
+ <PropertyGroup >
3
+ <DynamicsPropertyEditorFilesPath >
4
+ $(MSBuildThisFileDirectory)..\App_Plugins\UmbracoCms.Integrations\Crm\Dynamics\**\*.*
5
+ </DynamicsPropertyEditorFilesPath >
6
+ </PropertyGroup >
7
+ <Target Name =" CopyDynamicsPropertyEditorAssets" BeforeTargets =" Build" >
8
+ <ItemGroup >
9
+ <DynamicsPropertyEditorFiles Include =" $(DynamicsPropertyEditorFilesPath)" />
10
+ </ItemGroup >
11
+ <Message
12
+ Text=" Copying Dynamics Property Editor files: $(DynamicsPropertyEditorFilesPath) - #@(DynamicsPropertyEditorFiles->Count()) files"
13
+ Importance=" high" />
14
+ <Copy SourceFiles =" @(DynamicsPropertyEditorFiles)"
15
+ DestinationFiles =" @(DynamicsPropertyEditorFiles->'$(MSBuildProjectDirectory)\App_Plugins\UmbracoCms.Integrations\Crm\Dynamics\%(RecursiveDir)%(Filename)%(Extension)')"
16
+ SkipUnchangedFiles =" true" />
17
+
18
+ </Target >
19
+
20
+ <Target Name =" ClearDynamicsPropertyEditorAssets" BeforeTargets =" Clean" >
21
+ <ItemGroup >
22
+ <DynamicsPropertyEditorDir
23
+ Include=" $(MSBuildProjectDirectory)\App_Plugins\UmbracoCms\Crm\Dynamics\" />
24
+ </ItemGroup >
25
+ <Message Text =" Clear old Dynamics Property Editor data" Importance =" high" />
26
+ <RemoveDir Directories =" @(DynamicsPropertyEditorDir)" />
27
+ </Target >
28
+
29
+ </Project >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <umbPackage >
3
+ <info >
4
+ <package >
5
+ <name >Umbraco.Cms.Integrations.Crm.Dynamics</name >
6
+ <version >1.0.0</version >
7
+ <iconUrl ></iconUrl >
8
+ <licence url =" https://opensource.org/licenses/MIT" >MIT</licence >
9
+ <url >https://github.com/umbraco/Umbraco.Cms.Integrations</url >
10
+ <requirements type =" strict" >
11
+ <major >8</major >
12
+ <minor >4</minor >
13
+ <patch >0</patch >
14
+ </requirements >
15
+ </package >
16
+ <author >
17
+ <name >Umbraco HQ</name >
18
+ <website >https://github.com/umbraco/Umbraco.Cms.Integrations</website >
19
+ </author >
20
+ <contributors >
21
+ <contributor >Adrian Cojocariu</contributor >
22
+ </contributors >
23
+ <readme ><![CDATA[ An extension for Umbraco CMS providing a form picker and rendering component for Dynamics 365 Marketing.]]> </readme >
24
+ </info >
25
+ <files >
26
+ <folder path =" App_Plugins/UmbracoCms.Integrations/Crm/Dynamics" orgPath =" App_Plugins/UmbracoCms.Integrations/Crm/Dynamics" />
27
+ <file path =" bin/release/net472/Umbraco.Cms.Integrations.Crm.Dynamics.dll" orgPath =" bin/Umbraco.Cms.Integrations.Crm.Dynamics.dll" />
28
+ </files >
29
+ </umbPackage >
You can’t perform that action at this time.
0 commit comments