-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
[MSBuild]::NormalizeDirectory, Not Found #74
Comments
Ugh, @alanmcgovern?
On Fri, Aug 3, 2018, 7:06 AM Waqas Ahmed ***@***.***> wrote:
Hi,
Recent build of GitInfo is broken, getting error
"C:\gitlab\builds\70fbc2c0\0\SequelMed\SequelMedServerSide\SequelMed\SequelMed.vbproj" (Build target) (1) ->
(_GitRoot target) ->
C:\gitlab\builds\70fbc2c0\0\SequelMed\SequelMedServerSide\packages\GitInfo\build\GitInfo.targets(185,4): error MSB4186: Invalid static method invocation syntax: "[MSBuild]::NormalizeDirectory($(_GitOutput.Trim()))". Method '[MSBuild]::NormalizeDirectory' not found. Static method invocation should be of the form: $([FullTypeName]::Method()), e.g. $([System.IO.Path]::Combine(`a`, `b`)). [C:\gitlab\builds\70fbc2c0\0\SequelMed\SequelMedServerSide\SequelMed\SequelMed.vbproj]
0 Warning(s)
1 Error(s)
MSBuild: C:\Program Files (x86)\MSBuild\14.0
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#74>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKW6623a9VmCWhTdQ3McKN31-wg-6ovks5uNCCsgaJpZM4VtuNN>
.
--
…--
/kzu from mobile
|
Fixed in 3228678 |
Hi, when next version will be available? GitInfo ci builds also got failed. |
It's up now |
Hi, we are again getting this error
is there anything related to VS version? Thanks |
What's your build environment?--
…--
/kzu from mobile
|
Hi, we are using VS2015. Thanks |
I'll need a binlog (see http://msbuildlog.com) to diagnose properly. Thanks! |
Same here: used NuGet version of GitInfo: 2.0.20 |
OS and MSBuild version?
On Tue, Jan 8, 2019, 10:17 AM nexusw ***@***.***> wrote:
Same here:
Ungültige Aufrufsyntax für statische Methode:
"[MSBuild]::NormalizeDirectory($(_GitOutput.Trim()))". Die Methode
"[MSBuild]::NormalizeDirectory" konnte nicht gefunden werden. Für den
Aufruf statischer Methoden muss folgendes Format verwendet werden:
$([vollständiger Typname]::Methode()), z. B. $([System.IO.Path]::Combine(a,
b))
used NuGet version of GitInfo: 2.0.20
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#74 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAKW6xAcfvAYV6ps_CoSSrhXzCs92LBkks5vBJpPgaJpZM4VtuNN>
.
--
…--
@kzu from mobile
|
OS: Win 10 Pro with Version 1803 I found out that NormalizeDirectory() is new to MSBuild v15?: I try to install MSBuild v15 as described in: But how can i tell Visual studio which MSBuild to use? As a workaround i removed: This way compilation is done without errors and e.g. ThisAssembly.Git.Tag works fine. |
@kzu plz re-open this ticket also as its not still fixed. Thanks |
@alanmcgovern so if we replace all instances of |
Im not sure about that, because i also tried NormalizePath() with no luck. It is also listed in the new features of MsBuild v15.0. |
This issue is related to VS2015, when i used VS2019 the issue no longer occured. |
Yeah, it looks it's MSBuild 15+ only function. We'd need to condition all the places we use Normalize and do something different :(. |
By now, MSBuild 15+ is everywhere. No point in fixing it (and nobody volunteered either, so I guess it wasn't too critical either :)). |
Hi,
Recent build of GitInfo is broken, getting error
MSBuild:
C:\Program Files (x86)\MSBuild\14.0
The text was updated successfully, but these errors were encountered: