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

Unable to build with MarkMpn.Sql4Cds.Engine.FetchXml #377

Closed
tylersand opened this issue Oct 26, 2023 · 1 comment · Fixed by #383
Closed

Unable to build with MarkMpn.Sql4Cds.Engine.FetchXml #377

tylersand opened this issue Oct 26, 2023 · 1 comment · Fixed by #383

Comments

@tylersand
Copy link

I added the MarkMpn.Sql4Cds.Engine.FetchXml NuGet package to a solution and it fails to build. Other than Microsoft.CrmSdk.CoreAssemblies, are there other dependencies? Sorry if this is documented but I did not see anything specific to this minimal NuGet package.

Severity Code Description Project File Line Suppression State

Error CS1061 'FetchType' does not contain a definition for 'DataSource' and no accessible extension method 'DataSource' accepting a first argument of type 'FetchType' could be found (are you missing a using directive or an assembly reference?) FetchToSQLTest ...\App_Packages\MarkMpn.Sql4Cds.Engine\FetchXml2Sql.cs 93 Active

Error CS1061 'FetchType' does not contain a definition for 'DataSource' and no accessible extension method 'DataSource' accepting a first argument of type 'FetchType' could be found (are you missing a using directive or an assembly reference?) FetchToSQLTest ...\App_Packages\MarkMpn.Sql4Cds.Engine\FetchXml2Sql.cs 100 Active

Error CS1061 'condition' does not contain a definition for 'ValueOf' and no accessible extension method 'ValueOf' accepting a first argument of type 'condition' could be found (are you missing a using directive or an assembly reference?) FetchToSQLTest ...\App_Packages\MarkMpn.Sql4Cds.Engine\FetchXml2Sql.cs 661 Active

Error CS0103 The name 'DatabaseIdentifiers' does not exist in the current context FetchToSQLTest ...\App_Packages\MarkMpn.Sql4Cds.Engine\FetchXml2Sql.cs 2496 Active

@tylersand
Copy link
Author

Adding DatabaseIdentifiers.cs and FetchXml.Extensions.cs from MarkMpn.Sql4Cds.Engine seems to have resolved my issue. I do see those added to the code share project in the latest repo; so not sure why they are not included in the NuGet package.

image

MarkMpn added a commit that referenced this issue Oct 27, 2023
@MarkMpn MarkMpn mentioned this issue Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant