Skip to content

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

Closed

Description

@maikebing

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)

Activity

  1. asbjornu commented on Jun 15, 2016

    @asbjornu
    Member

    Duplicate of #720.

  2. asbjornu commented on Jun 15, 2016

    @asbjornu
    Member

    @Osilas Which version of GitVersion are you using?

  3. maikebing commented on Jun 15, 2016

    @maikebing
    Author

    @asbjornu GitVersionTask.3.5.4

  4. asbjornu commented on Jun 15, 2016

    @asbjornu
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions