-
Notifications
You must be signed in to change notification settings - Fork 67
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
SlowCheetah Task not compatible with .NET CLI #48
Comments
It seems the problem here is that the path to the DLL was incorrectly built. There should be a backslash right after the |
Thanks @davilimap for the explanation ... do I need to wait for the cli to be updated? Is there anything I should be doing to move forward? (clone repo, make changes, figure how to use those changes in my project, etc)? And thanks for all the work you have done on this. |
I've been investigating this issue a bit more, haven't been able to reproduce it so far. A possible workaround would be to go into the SlowCheetah target file and edit the |
Hi
If you take a closer look at the error message you will notice that the path to SlowCheetah's targets is
As you can see all the backslashes are on place however it seems that I am running the build with following dotnet cli/sdk
|
Does this work for .net core? I added the hard code path for the SlowCheetahTaskPath path in the Microsoft.VisualStudio.SlowCheetah.App.targets file and I am seeing the following error from the command line. It is building fine in visual studio. I am getting error when I run it from command "dotnet publish --framework net462 --output "PACKAGE" --configuration Release" C:\Users[user].nuget\packages\microsoft.visualstudio.slowcheetah\3.0.61\build\Microsoft.VisualStudio.SlowCheetah.App.targets(63,5): error MSB4062: The "TransformTask" task could not be loaded from the assembly C:\Users[user].nuget\packages\microsoft.visualstudio.slowcheetah\3.0.61\tools\Microsoft.VisualStudio.SlowCheetah.dll. Could not load file or assembly 'Microsoft.Build.Utilities.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. |
I've done some more investigating of this issue and it seems like I was mistaken with my original assessment of the problem being with backslashes (which was why I originally asked if adding it would fix the problem). That is also why I wasn't able to reproduce it. |
I'm running a .NET 4.5 console application and I'm having the same issue. I originally was using the SlowCheetah VS Extension(VSIX) but decided to move to the NuGet package(2.5.48). I installed the NuGet package, uninstalled and Extension and I'm getting the same error as @AlonCG posted. When I go to the packages folder for SlowCheetah, the DLL file name is I really need the ability to perform transforms on my App.config file via MSBuild. Hopefully this will be resolved soon. |
Turns out there's a Nuget package for SlowCheetah and Microsoft.VisualStudio.SlowCheetah. I had them both installed it appears. Removed both and re-installed Microsoft.VisualStudio.SlowCheetah and my local project is building. |
Yes, sorry about that @johnmurphy01. We renamed the packages and vsix to show that Microsoft has officially taken over this project. |
What's the status for this one? I am using the Microsoft.VisualStudio.SlowCeetah package, but get the error as described by others. Since mbuild deployment doesn't work with runtime identifiers the only option is to use the dotnet cli commands, but this issue is blocking that workaround. |
It doesn't work for me either. I have a solution which has both .NET Standard and .NET Framework projects in it - the .NET Framework ones are using SlowCheetah to transform my app.config. It compiles fine in Visual Studio 2017. When I
|
Many thanks for fixing this. Do you have an ETA as to when the next version that includes this fix will be pushed to NuGet? |
2 months have passed since the apparent fix was merged. Any ETA on moving to nuget? |
I stumbled upon this issue while searching for the same issue but with another product, while building on VSTS (with |
@MarienMonnier Did this help in conjunction with SlowCheetah? For me it does not help... |
@martinoss Sorry, as I told before, this was not linked to SlowCheetah. This issue was one of the few that I found with the same error as I had, and I thought maybe it could help... |
FYI @MarienMonnier 's solution doesn't work. |
I too have hit this apparent issue.. note the presence of the '\2.5.48\build**..**\tools' The "TransformTask" task could not be loaded from the assembly C:\Users<user>.nuget\packages\slowcheetah\2.5.48\build..\tools\Microsoft.VisualStudio.SlowCheetah.dll. Could not load file or assembly 'file:///C:\Users<user>.nuget\packages\slowcheetah\2.5.48\tools\Microsoft.VisualStudio.SlowCheetah.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. InboundIntegrationPlatform C:\Users<user>.nuget\packages\microsoft.visualstudio.slowcheetah\3.0.61\build\Microsoft.VisualStudio.SlowCheetah.App.target I'm going to try removing everything (again).. |
I can report that the tip about Microsoft.VisualStudio.SlowCheetah vs (the more downloaded) SlowCheetah has paid dividends. once I removed both of these and re-added just the Microsoft one it seemed ok. |
Is there an update to this? The relative path is still appearing in the output for me: "build..\tools". I need a solution as soon as possible and the other options in this thread have not worked for me. |
Try adding package version: 3.1.61-pre |
Hi guys, Much time has past - and we are/were having issues with these pesky transforms, that is actually getting them to transform at all on core projects. Just installed the 3.1.61-pre and it fixes our json and xml woo's - however it doesn't seem to apply the publish profile transform - only the config name (eg .debug./.release.). So before .publishprofilename.config/xml would be considered for a transform and it seems to not be now. Also had an issue whereby it was caching/using a .previous config transform in /obj/ after I'd completely removed the .debug.config transform. Had to manually delete this file. Anyone else experiencing this/these? |
3.1.61-pre immediately fixed my problem. Thanks. |
@jonathh21 The caching is due to the new behavior introduced in version 3.1.61-pre. I think transforming despite the transform file being deleted could be a separate bug. |
I was getting the original After removing SlowCheetah 2.5.48 and replacing with the MS-maintained 3.166 version, the error was resolved. |
In an attempt to update my EF Core first database ... I run
dotnet ef database update
.This results in the following error:
Others are experiencing this same exact issue ... from SO.
Any chance this project is being bit by the same thing that the SO mentions?
"DotNet" commands worked no problem before installing SlowCheetah. Any suggestions? (Which would also help the OP in the SO issue as well!)
The text was updated successfully, but these errors were encountered: