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

NotACLSComplaintProperty C++ #22

Closed
MAXxATTAXx opened this issue Jun 28, 2013 · 4 comments
Closed

NotACLSComplaintProperty C++ #22

MAXxATTAXx opened this issue Jun 28, 2013 · 4 comments

Comments

@MAXxATTAXx
Copy link

Getting the following error while installing Costura.Fody on an empty c++ CLR Project:

Attempting to resolve dependency 'Fody'.
Installing 'Fody 1.13.8.0'.
Successfully installed 'Fody 1.13.8.0'.
Installing 'Costura.Fody 0.3.2.1'.
Successfully installed 'Costura.Fody 0.3.2.1'.
Adding 'Fody 1.13.8.0' to Project3.
Successfully added 'Fody 1.13.8.0' to Project3.
Adding 'Costura.Fody 0.3.2.1' to Project3.
Successfully added 'Costura.Fody 0.3.2.1' to Project3.
Collection was modified; enumeration operation may not execute.
At \Project3\packages\Costura.Fody.0.3.2.1\Tools\install.ps1:6 char:11
+     Foreach ($item in $project.ProjectItems)
+              ~~~~~
    + CategoryInfo          : OperationStopped: (:) [], InvalidOperationException
    + FullyQualifiedErrorId : System.InvalidOperationException

The field/property: "project" for type:     "Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCProjectShim" differs     only in case from the field/property: "Project". Failed to 
use non CLS compliant type.
At \Project3\packages\Costura.Fody.0.3.2.1\Tools\install.ps1:50 char:28
+     foreach ($reference in $project.Object.References)
+                            ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], ExtendedTypeSystemException
    + FullyQualifiedErrorId : NotACLSComplaintProperty

There is nothing in the current project and just updated to Visual 2012 Update 3.
Not sure if Costura.Fody gets properly installed...

@distantcam
Copy link
Member

Costura (and all Fody projects) are incompatible with mixed mode assemblies because Mono.Cecil does not support them.

https://github.com/jbevain/cecil/wiki/FAQ

So even if it had installed properly, it won't work. Sorry.

See also issue #14

@MAXxATTAXx
Copy link
Author

👍
And i thought i was close to a solution. Any other alternative if possible?

@distantcam
Copy link
Member

You can implement what Costura does manually.

@SimonCropp
Copy link
Member

@distantcam guessing this one can be closed?

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

No branches or pull requests

3 participants