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

Compilation error #2

Closed
sergey-tihon opened this issue Mar 5, 2015 · 14 comments
Closed

Compilation error #2

sergey-tihon opened this issue Mar 5, 2015 · 14 comments
Assignees
Labels

Comments

@sergey-tihon
Copy link
Member

There are no required assemblies in lib folder.
image
@forki @pezipink Could you please commit them?

@forki
Copy link
Member

forki commented Mar 5, 2015

I assume this is a license issue. We can't commit that stuff.

@pezipink
Copy link

pezipink commented Mar 5, 2015

Yes I think you are right.

They are just the libraries included as part of the CRM SDK which you can download. This was built against SDK Version 5.0.12, it may or may not work with newer versions.... but them CRM guys are notoriously vigilant in maintaining backwards compatibility, even if it means their product goes at a snail's pace :)

@sergey-tihon
Copy link
Member Author

Can we use some of their official NuGet packages?
https://www.nuget.org/profiles/crmsdk

@pezipink
Copy link

pezipink commented Mar 5, 2015

possibly, I have no access to an XRM system to help you though. Thankfully I do not have to use it anymore .

@sergey-tihon
Copy link
Member Author

In general, paket can download CRM SDK installer from MS site...
But I do not know to extract assemblies from .exe without installation)

@sergey-tihon sergey-tihon reopened this Mar 5, 2015
@sergey-tihon
Copy link
Member Author

HA, I know how to fix it )))))
We can't commit these dlls due to license issue, but we pack them into NuGet package.
So I can restore them from there )))

@forki
Copy link
Member

forki commented Mar 5, 2015

what's the difference? If we push to nuget we redistribute the dlls.

@sergey-tihon
Copy link
Member Author

But they are already on NuGet inside our package.

sergey-tihon added a commit to sergey-tihon/DynamicsCRMProvider that referenced this issue Mar 5, 2015
Fixed NuGet package generation
@forki
Copy link
Member

forki commented Mar 5, 2015

I think this is actually a mistake. We should ask for permission or remove these again

@sergey-tihon
Copy link
Member Author

@forki Do you know how we can ask?

@JimDaly
Copy link

JimDaly commented Mar 6, 2015

You just configure the nuget packages in your project to point to the CRM assemblies on nuget. When the project gets built, it will download the assemblies from nuget. All of the samples within the CRM SDK do this. If you need a specific version you can specify that. See https://msdn.microsoft.com/en-us/library/dn689029.aspx

@sergey-tihon
Copy link
Member Author

Thank you @JimDaly ! This is awesome, I found everything except Microsoft.Crm.Services.Utility.dll
Does compiled samples are available on NuGet? Or can we commit here code from deviceidmanager.cs ?

@JimDaly
Copy link

JimDaly commented Mar 6, 2015

We don’t deliver any compiled samples in the SDK. Just code in projects.
I haven’t heard of Microsoft.Crm.Services.Utility.dll. We don’t ship it but I see it online at https://www.openhub.net/p/fsharp3sample/commits?query=Microsoft.Crm.Services.Utility.dll
We have a CrmSvcUtil.exe which includes the namespace ‘Microsoft.Crm.Services.Utility” See Create early bound entity classes with the code generation tool (CrmSvcUtil.exe)https://msdn.microsoft.com/en-us/library/gg327844.aspx.
When you write your own flavor of CrmSvcUtil.exe, you link to CrmSvcUtil.exe and that provides you the namespace.
So, if someone was making an F# version of entity classes generated by that utility they might produce that – but we don’t ship it.

From: Sergey Tihon [mailto:[email protected]]
Sent: Friday, March 6, 2015 1:10 PM
To: fsprojects/DynamicsCRMProvider
Cc: Jim Daly
Subject: Re: [DynamicsCRMProvider] Compilation error (#2)

Thank you @JimDalyhttps://github.com/JimDaly ! This is awesome, I found everything except Microsoft.Crm.Services.Utility.dll
Does compiled samples are available on NuGet?


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-77636274.

@pezipink
Copy link

pezipink commented Mar 7, 2015

@sergey-tihon what breaks if you remove the reference? Maybe it was some utility function, I really can't remember now, it was a long time ago. We are of not using CrmServiceUtil to generate code, that was what I was avoiding with the erasing type provider :) The post I wrote originally does not seem to mention that lib.

http://blogs.msdn.com/b/fsharpteam/archive/2013/02/14/the-f-microsoft-dynamics-crm-type-provider-sample-strongly-typed-enterprise-scale-customer-data-made-simple.aspx

sergey-tihon added a commit to sergey-tihon/DynamicsCRMProvider that referenced this issue Mar 8, 2015
@sergey-tihon sergey-tihon self-assigned this Mar 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants