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 11#if NETCOREAPP
2+ using Microsoft . Extensions . DependencyInjection ;
3+
24using Umbraco . Cms . Core . Composing ;
35using Umbraco . Cms . Core . DependencyInjection ;
4-
5- using Microsoft . Extensions . DependencyInjection ;
66using Umbraco . Cms . Integrations . Crm . Dynamics . Configuration ;
77using Umbraco . Cms . Integrations . Crm . Dynamics . Services ;
8+ using Umbraco . Cms . Core . Notifications ;
9+ using Umbraco . Cms . Integrations . Crm . Dynamics . Migrations ;
810#else
911using Umbraco . Cms . Integrations . Crm . Dynamics . Services ;
1012using Umbraco . Core ;
@@ -21,6 +23,8 @@ public void Compose(IUmbracoBuilder builder)
2123 var options = builder . Services . AddOptions < DynamicsSettings > ( )
2224 . Bind ( builder . Config . GetSection ( Constants . Configuration . Settings ) ) ;
2325
26+ builder . AddNotificationHandler < UmbracoApplicationStartingNotification , UmbracoAppStartingHandler > ( ) ;
27+
2428 builder . Services . AddSingleton < IAuthorizationService , AuthorizationService > ( ) ;
2529
2630 builder . Services . AddSingleton < DynamicsService > ( ) ;
Original file line number Diff line number Diff line change 2020 <PackageReference Include =" UmbracoCms.Web" version =" 8.4.0" />
2121 </ItemGroup >
2222
23- <ItemGroup Condition =" '$(TargetFramework)' == 'net50'" >
23+ <ItemGroup Condition =" '$(TargetFramework)' == 'net50' Or '$(TargetFramework)' == 'net60' " >
2424 <PackageReference Include =" Umbraco.Cms.Web.Website" version =" 9.0.1" />
2525 <PackageReference Include =" Umbraco.Cms.Web.BackOffice" version =" 9.0.1" />
2626 <PackageReference Include =" Umbraco.Cms.Web.Common" version =" 9.0.1" />
2727 </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 >
3428
3529 <ItemGroup >
3630 <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