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

Error MSB6006: "" exited with code 1. #267

Open
lukedukeus opened this issue Sep 1, 2023 · 2 comments
Open

Error MSB6006: "" exited with code 1. #267

lukedukeus opened this issue Sep 1, 2023 · 2 comments

Comments

@lukedukeus
Copy link
Contributor

Attached are two demo projects. The first one (TestDotNetCore) compiles fine, however the second one (TestDotNetCoreWindows) fails with the following error:

Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB6006	"" exited with code 1.	TestDotNetCoreWindows	C:\Users\Luke\.nuget\packages\reinforced.typings\1.6.2\build\Reinforced.Typings.targets	61	

The only difference in the two projects is that the first one targets net7.0, and the second targets net7.0-windows.
I've found that this issue is being caused by the GetProperRtcliPath method in Reinforced.Typings.Integrate, which does not remove the platform identifier, meaning it it looks for rtcli.exe in C:\Users\Luke\.nuget\packages\reinforced.typings\1.6.2\tools\net7.0-windows\rtcli.dll rather than C:\Users\Luke\.nuget\packages\reinforced.typings\1.6.2\tools\net7.0\rtcli.dll (where it is actually located)

You can get around this by setting <RtForceTargetFramework>net7.0</RtForceTargetFramework>, or I've opened a PR which fixes this issue.

@lukedukeus
Copy link
Contributor Author

Demo projects to reproduce the issue:

ReinforcedTypingsBug.zip

@haga-rak
Copy link

haga-rak commented Mar 7, 2024

The workaround is fine even for .NET 8 but, unlike csproj TargetFramework, you must add the minor version

Not working

<RtForceTargetFramework>net8</RtForceTargetFramework>

Working

<RtForceTargetFramework>net8.0</RtForceTargetFramework>

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

Successfully merging a pull request may close this issue.

2 participants