Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ms auto number attribute #99

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 26 additions & 12 deletions Tools/Daxif/GenerateCSharpContext.fsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
(**
SolutionUpdateCustomContext
=====================
*)

#load @"_Config.fsx"
Expand All @@ -13,15 +12,30 @@ let targetPath vName = Path.solutionRoot ++ (sprintf @"tests\TestPluginAssembly%


crmNamesWithVersions
|> Seq.iter (fun (vName, sdkVersion) ->

Solution.GenerateCSharpContext(Env.lab4, xrmContext, targetPath vName,
solutions = [
SolutionInfo.name
],
entities = entitiesToGenerate,
extraArguments = [
"deprecatedprefix", "ZZ_"
"sdkVersion", sdkVersion
])
|> Seq.iter (fun (vName, sdkVersion) ->
Solution.GenerateCSharpContext(Env.dev, xrmContext, targetPath vName,
solutions = [
SolutionInfo.name
],
entities = entitiesToGenerate,
extraArguments = [
"deprecatedprefix", "ZZ_"
"sdkVersion", sdkVersion
"lm", "\u2714\uFE0F: checkmark"
])
)



// Uncomment to generate XrmMockup metadata whenever you generate CSharp Context
//let xrmMockupMetadataGen = Path.metdataFolder ++ "MetadataGenerator365.exe"
//Solution.GenerateXrmMockupMetadata(Env.dev, xrmMockupMetadataGen, Path.metdataFolder,
// solutions = [
// SolutionInfo.name
// ],
// entities = [
// // eg. "systemuser"
// ],
// extraArguments = [
// ]
//)
2 changes: 1 addition & 1 deletion Tools/Daxif/GenerateXrmMockupMetadata.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let targetPath vName = Path.solutionRoot ++ (sprintf @"tests\XrmMockup%sTest\Met
crmNamesWithVersions
|> Seq.iter (fun (vName, _) ->
printfn "Executing for %s" vName
Env.lab4.executeProcess(
Env.dev.executeProcess(
metadataGenPath vName,

[ // Args for MetadataGenerator
Expand Down
3 changes: 1 addition & 2 deletions Tools/Daxif/PluginSyncDev.fsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
(**
PluginSyncDev
=================
*)

#load @"_Config.fsx"
Expand All @@ -11,4 +10,4 @@ open DG.Daxif.Common.Utility
let pluginProjFile = Path.solutionRoot ++ @"Plugins\Plugins.csproj"
let pluginDll = Path.solutionRoot ++ @"Plugins\bin\Release\ILMerged.Delegate.XrmOrg.XrmSolution.Plugins.dll"

Plugin.Sync(Env.lab4, pluginDll, pluginProjFile, SolutionInfo.name)
Plugin.Sync(Env.dev, pluginDll, pluginProjFile, SolutionInfo.name)
23 changes: 23 additions & 0 deletions Tools/Daxif/PublishAllArg.fsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
(**
SolutionPublishArg
=================

Configurable publish customization script, which is mainly intended for use by the build server.

Arguments:

* `env=<name of environment>` (required)
*)

#load @"_Config.fsx"
open DG.Daxif
open DG.Daxif.Common.Utility

let args = fsi.CommandLineArgs |> parseArgs

let env =
match args |> tryFindArg ["env"; "e"] with
| Some arg -> Environment.Get arg
| None -> failwithf "Missing 'env' argument needed to execute this script."

Solution.PublishAll(env)
31 changes: 31 additions & 0 deletions Tools/Daxif/ViewExtender.fsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
(**
View Extender
*)

#load @"_Config.fsx"
open _Config
open DG.Daxif

View.GenerateFiles(Env.dev, Path.daxifRoot,
solutions = [|
SolutionInfo.name
|],
entities = [|
// eg. "systemuser"
|])


#load @"viewExtenderData\_ViewGuids.fsx"
#load @"viewExtenderData\_EntityRelationships.fsx"
#load @"viewExtenderData\_EntityAttributes.fsx"

open ViewGuids
open EntityAttributes
open EntityRelationships

// define extensions e.g.:
// Views.Account.MyParentView
// |> View.Parse Env.dev
// |> View.ChangeId Views.Account.FirstChildView
// |> View.AddRelatedColumnFirst Account.Relations.Primarycontactid_ContactContactid [Contact.Fields.Address1_City] [400]
// |> View.UpdateView Env.dev
1 change: 0 additions & 1 deletion Tools/Daxif/WorkflowSyncDev.fsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
(**
WorkflowSyncDev
=================
*)

#load @"_Config.fsx"
Expand Down
46 changes: 40 additions & 6 deletions Tools/Tools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Delegate.Daxif, Version=3.0.3.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Delegate.Daxif.3.1.0\lib\net45\Delegate.Daxif.dll</HintPath>
<Reference Include="Delegate.Daxif, Version=4.7.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Delegate.Daxif.4.7.0\lib\net45\Delegate.Daxif.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Crm.Services.Utility, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Delegate.Daxif.3.1.0\lib\net45\Microsoft.Crm.Services.Utility.dll</HintPath>
<HintPath>..\packages\Delegate.Daxif.4.7.0\lib\net45\Microsoft.Crm.Services.Utility.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand All @@ -52,27 +52,61 @@
<ItemGroup>
<Content Include="Daxif\bin\Delegate.Daxif.dll" />
<Content Include="Daxif\bin\Delegate.Daxif.xml" />
<Content Include="Daxif\bin\FSharp.Core.dll" />
<Content Include="Daxif\bin\FSharp.Core.xml" />
<Content Include="Daxif\bin\Microsoft.ApplicationInsights.dll" />
<Content Include="Daxif\bin\Microsoft.Crm.Sdk.Proxy.dll" />
<Content Include="Daxif\bin\Microsoft.Crm.Sdk.Proxy.xml" />
<Content Include="Daxif\bin\Microsoft.Crm.Services.Utility.dll" />
<Content Include="Daxif\bin\Microsoft.IdentityModel.Clients.ActiveDirectory.dll" />
<Content Include="Daxif\bin\Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll" />
<Content Include="Daxif\bin\Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.xml" />
<Content Include="Daxif\bin\Microsoft.IdentityModel.Clients.ActiveDirectory.xml" />
<Content Include="Daxif\bin\Microsoft.IdentityModel.dll" />
<Content Include="Daxif\bin\Microsoft.PowerApps.AppInsights.BatchedTelemetry.dll" />
<Content Include="Daxif\bin\Microsoft.PowerApps.AppInsights.BatchedTelemetryChannel.dll" />
<Content Include="Daxif\bin\Microsoft.Rest.ClientRuntime.dll" />
<Content Include="Daxif\bin\Microsoft.Xrm.Sdk.Deployment.dll" />
<Content Include="Daxif\bin\Microsoft.Xrm.Sdk.Deployment.xml" />
<Content Include="Daxif\bin\Microsoft.Xrm.Sdk.dll" />
<Content Include="Daxif\bin\SolutionPackager.exe" />
<Content Include="Daxif\bin\Microsoft.Xrm.Sdk.Workflow.dll" />
<Content Include="Daxif\bin\Microsoft.Xrm.Sdk.Workflow.xml" />
<Content Include="Daxif\bin\Microsoft.Xrm.Sdk.xml" />
<Content Include="Daxif\bin\Microsoft.Xrm.Tooling.Connector.dll" />
<Content Include="Daxif\bin\Microsoft.Xrm.Tooling.Connector.xml" />
<Content Include="Daxif\bin\Newtonsoft.Json.dll" />
<Content Include="Daxif\bin\Newtonsoft.Json.xml" />
<Content Include="Daxif\bin\SolutionPackagerLib.dll" />
<Content Include="Daxif\bin\System.Diagnostics.DiagnosticSource.dll" />
<Content Include="Daxif\bin\System.ValueTuple.dll" />
<Content Include="Daxif\GenerateXrmMockupMetadata.fsx" />
<Content Include="XrmContext\FSharp.Core.dll" />
<Content Include="XrmContext\Microsoft.Crm.Sdk.Proxy.dll" />
<Content Include="XrmContext\Microsoft.IdentityModel.dll" />
<Content Include="XrmContext\Microsoft.IdentityModel.Clients.ActiveDirectory.dll" />
<Content Include="XrmContext\Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll" />
<Content Include="XrmContext\Microsoft.Rest.ClientRuntime.dll" />
<Content Include="XrmContext\Microsoft.Xrm.Sdk.Deployment.dll" />
<Content Include="XrmContext\Microsoft.Xrm.Sdk.dll" />
<Content Include="XrmContext\Run.fsx" />
<Content Include="XrmContext\Microsoft.Xrm.Sdk.Workflow.dll" />
<Content Include="XrmContext\Microsoft.Xrm.Tooling.Connector.dll" />
<Content Include="XrmContext\Newtonsoft.Json.dll" />
<Content Include="XrmContext\System.Buffers.dll" />
<Content Include="XrmContext\System.Memory.dll" />
<Content Include="XrmContext\System.Numerics.Vectors.dll" />
<Content Include="XrmContext\System.Runtime.CompilerServices.Unsafe.dll" />
<Content Include="XrmContext\XrmContext.exe" />
<Content Include="XrmContext\XrmContext.xml" />
</ItemGroup>
<ItemGroup>
<None Include="Daxif\GenerateCSharpContext.fsx" />
<None Include="Daxif\Playground.fsx" />
<None Include="Daxif\PluginSyncDev.fsx" />
<None Include="Daxif\PublishAllArg.fsx" />
<None Include="Daxif\ViewExtender.fsx" />
<None Include="Daxif\WorkflowSyncDev.fsx" />
<None Include="Daxif\_Config.fsx" />
<None Include="packages.config" />
<None Include="XrmContext\Run.fsx" />
<None Include="XrmContext\Run.ps1" />
<None Include="XrmContext\XrmContext.exe.config" />
</ItemGroup>
Expand Down
Binary file modified Tools/XrmContext/FSharp.Core.dll
Binary file not shown.
Binary file modified Tools/XrmContext/Microsoft.Crm.Sdk.Proxy.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed Tools/XrmContext/Microsoft.IdentityModel.dll
Binary file not shown.
Binary file added Tools/XrmContext/Microsoft.Rest.ClientRuntime.dll
Binary file not shown.
Binary file added Tools/XrmContext/Microsoft.Xrm.Sdk.Deployment.dll
Binary file not shown.
Binary file added Tools/XrmContext/Microsoft.Xrm.Sdk.Workflow.dll
Binary file not shown.
Binary file modified Tools/XrmContext/Microsoft.Xrm.Sdk.dll
Binary file not shown.
Binary file not shown.
Binary file added Tools/XrmContext/Newtonsoft.Json.dll
Binary file not shown.
Binary file added Tools/XrmContext/System.Buffers.dll
Binary file not shown.
Binary file added Tools/XrmContext/System.Memory.dll
Binary file not shown.
Binary file added Tools/XrmContext/System.Numerics.Vectors.dll
Binary file not shown.
Binary file not shown.
Binary file modified Tools/XrmContext/XrmContext.exe
Binary file not shown.
13 changes: 4 additions & 9 deletions Tools/XrmContext/XrmContext.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Tools/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Delegate.Daxif" version="3.1.0" targetFramework="net462" />
<package id="Delegate.XrmContext" version="1.4.1" targetFramework="net452" />
<package id="Delegate.Daxif" version="4.7.0" targetFramework="net462" />
<package id="Delegate.XrmContext" version="1.7.4" targetFramework="net462" />
</packages>
Loading