-
Notifications
You must be signed in to change notification settings - Fork 104
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
Antlr4Compile fails on TeamCity 10.0.5 w/ Microsoft Build Tools 2017: Could not load file or assembly Antlr4BuildTasks #195
Comments
Here's an assembly binder log. It looks like it's trying to load the task from the wrong path?
|
I have also tried changing nuget restore to use NuGet 4.0.0. This produces somewhat different output in --- 3.5.0/project.lock.json 2017-03-16 16:21:37.715825400 -0400
+++ 4.0.0/project.lock.json 2017-03-16 13:20:36.827199400 -0400
@@ -1,15 +1,23 @@
{
- "version": 1,
+ "version": 2,
"targets": {
".NETFramework,Version=v4.5.1": {
"Antlr4/4.6.1-beta002": {
+ "type": "package",
"dependencies": {
"Antlr4.CodeGenerator": "4.6.1-beta002",
"Antlr4.Runtime": "4.6.1-beta002"
}
},
- "Antlr4.CodeGenerator/4.6.1-beta002": {},
+ "Antlr4.CodeGenerator/4.6.1-beta002": {
+ "type": "package",
+ "build": {
+ "build/Antlr4.CodeGenerator.props": {},
+ "build/Antlr4.CodeGenerator.targets": {}
+ }
+ }, However, the outcome is worse: msbuild doesn't run the |
This is starting to look more like a TeamCity bug to me, so I have reported it to JetBrains here: https://youtrack.jetbrains.com/issue/TW-49205 Going to leave this open for now because I'm still not sure of the root cause. |
It was my understanding that as of the release of VS2017 and the associated tooling that the json project files had now been deprecated. I have encountered similar problems when building with TeamCity with the json setup in .NetStandard projects but had put it down to the aforementioned issue. |
I'm talking about
https://docs.microsoft.com/en-us/nuget/schema/project-json I believe NuGet All that having been said, the inner workings of
For some reason, on TeamCity, using NuGet 3.5.0's |
@wjrogers you probably will soon say goodbye to http://blog.nuget.org/20170316/NuGet-now-fully-integrated-into-MSBuild.html So IMHO, for all VS releases before VS2017, developers should just use |
@lextm like I said in my previous post, |
I have a similar situation that I suspect has the same origin of this case, although it's happening on AppVeyor and not in TeamCity (not sure what infrastructure AppVeyor uses, maybe TeamCity). In my machines I'm mounting VS2017 (that means I'm using the new MSBuild project) and I am developing the .NET Core version of a SQL database system (DeveelDB Core, DeveelDB). I tried referencing the NuGet packages Microsoft.Build.Framework, Microsoft.Build.Tasks and Microsoft.Build.Utilities, but it doesn't help. Any developments on the understanding of the cause of this issue? |
@tsutomi That would be a separate bug related to the use of |
Forgot to update this issue, but I was able to get my build working using |
@sharwell can you reference the issue and eventually the solution for the bug? Is it there around any sample VS2017 MSBuild .csproj file that I can use as reference? |
I have converted one of my projects to the new
project.json
nuget reference format and upgraded the Antlr4 package to 4.6.1-beta002. The latter fixed the initial build issues I encountered in Visual Studio, but I'm still having trouble building this project in TeamCity:The assembly is present in the same folder:
C:\Users\Services\.nuget\packages\antlr4.codegenerator\4.6.1-beta002\build\Antlr4BuildTasks.dll
The build server has Microsoft Build Tools 2017 installed as well as the SDKs and targeting packs for .NET Framework 4.5.1, 4.6.1, and 4.6.2. Any ideas about what I might be missing?
The text was updated successfully, but these errors were encountered: