Closed NickAcPT closed 4 years ago
Thanks for the report,
Do you only have a preview release from 16.x ? and seems like stable in 15.x Can you show result for the command:
hMSBuild -only-path -vsw-as "-products * -latest -prerelease"
Pardon for the late reply!
Here's the output:
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\amd64\MSBuild.exe
I've also had this problem (not sure if related):
Could not load SDK Resolver. A manifest file exists, but the path to the SDK Resolver DLL file could not be found. Manifest file path 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\SdkResolvers\Microsoft.Build.NuGetSdkResolver\Microsoft.Build.NuGetSdkResolver.xml'. SDK resolver path: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\CommonExtensions\Microsoft\NuGet\Microsoft.Build.NuGetSdkResolver.dll C:\Users\NickAc\Source\Repos\WinTabby\WinTabby\WinTabby.csproj
I've changed the xml file to the following as a workaround:
<SdkResolver>
<Path>C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\Common7\IDE\CommonExtensions\Microsoft\NuGet\Microsoft.Build.NuGetSdkResolver.dll</Path>
</SdkResolver>
I guess I could try reinstalling both Buildtools?
Pardon for the late reply!
Don't worry, this was actually fast :)
Since -prerelease indicates the same result, could you please also check this command:
hMSBuild -only-path -vsw-as "-products * -latest -prerelease -all"
I guess I could try reinstalling both Buildtools?
Hmm, it could be really similar to recent problem: https://github.com/3F/DllExport/issues/139#issuecomment-604426500 Thus, please show also result for this:
vswhere -requires Microsoft.Component.MSBuild -products * -prerelease -all
Since -prerelease indicates the same result, could you please also check this command:
hMSBuild -only-path -vsw-as "-products * -latest -prerelease -all"
It only outputs the following:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\amd64\MSBuild.exe
Hmm, it could be really similar to recent problem: #139 (comment) Thus, please show also result for this:
vswhere -requires Microsoft.Component.MSBuild -products * -prerelease -all
Didn't mean to close it. Is my installation somehow broken? I've had VS 2017 installed before.
Is my installation somehow broken?
No, I'm seeing a two isComplete: 1
instances for your case. That's ok and nothing related to #139
Moreover, last result for hMSBuild is also ok.
Are you sure that hMSBuild -only-path -vsw-as "-products * -latest -prerelease"
returns VS2017 ? :) strange result
What about this?
vswhere -requires Microsoft.Component.MSBuild -products * -latest -prerelease
and this
vswhere -requires Microsoft.Component.MSBuild -products * -latest -prerelease -all
Are you sure that
hMSBuild -only-path -vsw-as "-products * -latest -prerelease"
returns VS2017 ? :) strange result
Yup. Don't know why it happens though.
vswhere -requires Microsoft.Component.MSBuild -products * -latest -prerelease
vswhere -requires Microsoft.Component.MSBuild -products * -latest -prerelease -all
what about this:
hMSBuild -only-path -vsw-as "-products * -latest -prerelease" -vsw-version 2.7.1 -no-cache
Only this:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\amd64\MSBuild.exe
And please this:
hMSBuild -debug -only-path -vsw-as "-products * -latest -prerelease"
hMSBuild -debug -only-path -vsw-as "-products * -latest -prerelease" -vsw-version 2.8.4 -no-cache
Sorry again for the late reply.. Closed the tab accidentally.
hMSBuild -debug -only-path -vsw-as "-products * -latest -prerelease"
hMSBuild -debug -only-path -vsw-as "-products * -latest -prerelease" -vsw-version 2.8.4 -no-cache
The results confuses me a bit. Thank you for the new details!
Before your last reply I thought about bug or changed behavior of the vswhere tool between local and remote versions.
But the default command for hmsbuild points exactly on local use:
[ 0:55:26.60 ] vswbin: "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe"
Where used 2.7.1 due to result from https://github.com/3F/DllExport/issues/143#issuecomment-606931074
But other forcibly use of 2.8.4 is also detects 16.6.29911.98
Can you please try again for this first command:
hMSBuild -only-path -vsw-as "-products * -latest -prerelease"
If still, then I will look later problems as part of the hMSBuild project.
For DllExport project more like we need add -prerelease
key anyway. For the cases like yours it could be a good solution before replacing msbuild evaluator in future.
Can you please try again for this first command:
hMSBuild -only-path -vsw-as "-products * -latest -prerelease"
C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\amd64\MSBuild.exe
So, did I somehow break your project? Am a bit confused. Also, I've updated the 2017 Build Tools but forgot to add that to one of my previous replies. Sorry for not mentioning it.
I've opened DllExport and on the data tab there's this:
If needed, I could try using a normal .NET Framework project for this.
So, did I somehow break your project?
No, I meant the bug that should be considered as part of other project. DllExport includes hMSBuild but this are different projects of course
C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\amd64\MSBuild.exe
This is other result from your first reply:
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\amd64\MSBuild.exe
And it's more like this is what we need. Later I'll push solution with -prerelease key.
If needed, I could try using a normal .NET Framework project for this.
No, it does not related to netfx.
Oh I see. Thanks a lot for your time! Is there anything else needed from my side?
@NickAcPT Yes, please confirm solution 003360a4 compiled DllExport.bat: https://ci.appveyor.com/api/buildjobs/1992r7x51dcg5hx8/artifacts/bin%2FRelease%2FDllExport.bat
Pardon the delay, but I can confirm that it just works. Thanks a lot. Is there anything else needed for this issue or can it be closed?
Pardon the delay, but I can confirm that it just works. Thanks a lot.
Good!
Is there anything else needed for this issue or can it be closed?
I don't think so :) You can close it if your problem is fixed now. Or it will be closed anyway after merging into master branch.
@NickAcPT I don't have ETA yet for the new public release. I think we'll wait a bit to review the problem #141 and related. But you can use this CI build as a temporary solution in your case. Please don't use it in production before official release.
I don't think so :) You can close it if your problem is fixed now. Or it will be closed anyway after merging into master branch.
I'll leave this opened until the PR gets merged so that it's easier to know what's been fixed and what wasn't.
But you can use this CI build as a temporary solution in your case. Please don't use it in production before official release.
Will do! Thanks a lot for helping 👍
FYI: corrected processing of -msb key after last fixes for this problem. Use 848e19b instead.
Steps to reproduce: I created a .Net Core 3.1 class library project.
DllExport -version
: .NET DllExport 1.7.0.60761+0a002a7Information from
Data
tab or log data:Demo Project files / Samples / etc.: