Skip to content

Could not determine assembly version: System.Runtime.InteropServices.MarshalDirectiveException: StrictFilePathMarshaler must be used on a FilePath. #899

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

Closed
maikebing opened this issue Jun 12, 2016 · 4 comments

Comments

@maikebing
Copy link

2>MSBUILD : warning : WARN [06/12/16 12:22:11:71] Could not determine assembly version: System.Runtime.InteropServices.MarshalDirectiveException: StrictFilePathMarshaler must be used on a FilePath.
2>MSBUILD : warning : 在 LibGit2Sharp.Core.StrictFilePathMarshaler.MarshalManagedToNative(Object managedObj)
2>MSBUILD : warning : 在 System.StubHelpers.MngdRefCustomMarshaler.ConvertContentsToNative(IntPtr pMarshalState, Object& pManagedHome, IntPtr pNativeHome)
2>MSBUILD : warning : 在 LibGit2Sharp.Core.NativeMethods.git_repository_discover(GitBuf buf, FilePath start_path, Boolean across_fs, FilePath ceiling_dirs)
2>MSBUILD : warning : 在 LibGit2Sharp.Core.Proxy.<>c__DisplayClass39.<git_repository_discover>b__38(GitBuf buf)
2>MSBUILD : warning : 在 LibGit2Sharp.Core.Proxy.ConvertPath(Func2 pathRetriever) 2>MSBUILD : warning : 在 LibGit2Sharp.Core.Proxy.git_repository_discover(FilePath start_path) 2>MSBUILD : warning : 在 LibGit2Sharp.Repository.Discover(String startingPath) 2>MSBUILD : warning : 在 GitVersion.GitPreparer.GetDotGitDirectory() 2>MSBUILD : warning : 在 GitVersion.ExecuteCore.ExecuteGitVersion(String targetUrl, String dynamicRepositoryLocation, Authentication authentication, String targetBranch, Boolean noFetch, String workingDirectory, String commitId, Config overrideConfig) 2>MSBUILD : warning : 在 GitVersion.ExecuteCore.TryGetVersion(String directory, VersionVariables& versionVariables, Boolean noFetch, Authentication authentication) 2>MSBUILD : warning : WARN [06/12/16 12:22:11:72] Could not determine assembly version: System.Runtime.InteropServices.MarshalDirectiveException: StrictFilePathMarshaler must be used on a FilePath. 2>MSBUILD : warning : 在 LibGit2Sharp.Core.StrictFilePathMarshaler.MarshalManagedToNative(Object managedObj) 2>MSBUILD : warning : 在 System.StubHelpers.MngdRefCustomMarshaler.ConvertContentsToNative(IntPtr pMarshalState, Object& pManagedHome, IntPtr pNativeHome) 2>MSBUILD : warning : 在 LibGit2Sharp.Core.NativeMethods.git_repository_discover(GitBuf buf, FilePath start_path, Boolean across_fs, FilePath ceiling_dirs) 2>MSBUILD : warning : 在 LibGit2Sharp.Core.Proxy.<>c__DisplayClass39.<git_repository_discover>b__38(GitBuf buf) 2>MSBUILD : warning : 在 LibGit2Sharp.Core.Proxy.ConvertPath(Func2 pathRetriever)
2>MSBUILD : warning : 在 LibGit2Sharp.Core.Proxy.git_repository_discover(FilePath start_path)
2>MSBUILD : warning : 在 LibGit2Sharp.Repository.Discover(String startingPath)
2>MSBUILD : warning : 在 GitVersion.GitPreparer.GetDotGitDirectory()
2>MSBUILD : warning : 在 GitVersion.ExecuteCore.ExecuteGitVersion(String targetUrl, String dynamicRepositoryLocation, Authentication authentication, String targetBranch, Boolean noFetch, String workingDirectory, String commitId, Config overrideConfig)
2>MSBUILD : warning : 在 GitVersion.ExecuteCore.TryGetVersion(String directory, VersionVariables& versionVariables, Boolean noFetch, Authentication authentication)
2>MSBUILD : warning : WARN [06/12/16 12:22:11:72] Could not determine assembly version: System.Runtime.InteropServices.MarshalDirectiveException: StrictFilePathMarshaler must be used on a FilePath.
2>MSBUILD : warning : 在 LibGit2Sharp.Core.StrictFilePathMarshaler.MarshalManagedToNative(Object managedObj)
2>MSBUILD : warning : 在 System.StubHelpers.MngdRefCustomMarshaler.ConvertContentsToNative(IntPtr pMarshalState, Object& pManagedHome, IntPtr pNativeHome)
2>MSBUILD : warning : 在 LibGit2Sharp.Core.NativeMethods.git_repository_discover(GitBuf buf, FilePath start_path, Boolean across_fs, FilePath ceiling_dirs)
2>MSBUILD : warning : 在 LibGit2Sharp.Core.Proxy.<>c__DisplayClass39.<git_repository_discover>b__38(GitBuf buf)
2>MSBUILD : warning : 在 LibGit2Sharp.Core.Proxy.ConvertPath(Func`2 pathRetriever)
2>MSBUILD : warning : 在 LibGit2Sharp.Core.Proxy.git_repository_discover(FilePath start_path)
2>MSBUILD : warning : 在 LibGit2Sharp.Repository.Discover(String startingPath)
2>MSBUILD : warning : 在 GitVersion.GitPreparer.GetDotGitDirectory()
2>MSBUILD : warning : 在 GitVersion.ExecuteCore.ExecuteGitVersion(String targetUrl, String dynamicRepositoryLocation, Authentication authentication, String targetBranch, Boolean noFetch, String workingDirectory, String commitId, Config overrideConfig)
2>MSBUILD : warning : 在 GitVersion.ExecuteCore.TryGetVersion(String directory, VersionVariables& versionVariables, Boolean noFetch, Authentication authentication)

@asbjornu
Copy link
Member

Duplicate of #720.

@asbjornu
Copy link
Member

@Osilas Which version of GitVersion are you using?

@maikebing
Copy link
Author

@asbjornu GitVersionTask.3.5.4

@asbjornu
Copy link
Member

@Osilas Ok, thanks. Then we have confirmation that this is still occurring. We're tracking this in #720.

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

2 participants