Comments (21)
Could you please uprade the .NET plugin for TeamCity 2022
from teamcity-dotnet-plugin.
@loop-evgeny please try this plugin
from teamcity-dotnet-plugin.
@loop-evgeny please try this plugin
That works with a comma in the build configuration name, thanks! It's URL-encoded in the 1.rsp file now:
-p:teamcity_buildConfName="engine (Linux%2C DebugMode off)"
from teamcity-dotnet-plugin.
As a workaround, currently I add a global.json file in my solution to specify a particular .NET SDK version other than 6.0.301, then everything works again. The global.json file can be removed after this issue gets solved.
from teamcity-dotnet-plugin.
+1 on this, I've also just updated to latest version of .net 6 (6.0.301) and have started seeing this issue in Linux/Debian:
[21:28:18]E: Step 1/14: Publish (.NET)
[21:28:18]i: [Step 1/14] dotnet --version
[21:28:18]i: [Step 1/14] Starting: Getting the .NET SDK version /usr/share/dotnet/ dotnet --version
[21:28:18]i: [Step 1/14] in directory: /opt/teamcity-agent-1/work/eddc24f5d5a9ddc4
[21:28:18]i: [Step 1/14] 6.0.301
[21:28:18]i: [Step 1/14] Process exited with code 0
[21:28:18]E: [Step 1/14] dotnet publish
[21:28:18] : [dotnet publish] Starting: [30;1m.NET SDK 6.0.301 [0m/usr/share/dotnet/dotnet publish /opt/teamcity-agent-1/work/eddc24f5d5a9ddc4/Src/XXXXX.sln --configuration Release --output output/ @/opt/teamcity-agent-1/temp/agentTmp/1.rsp -p:PackageVersion=1.0.1767 -p:OutputPath=output/ -p:PublishDir=output/
[21:28:18] : [dotnet publish] in directory: /opt/teamcity-agent-1/work/eddc24f5d5a9ddc4
[21:28:18] : [dotnet publish] Microsoft (R) Build Engine version 17.2.0+41abc5629 for .NET
[21:28:18] : [dotnet publish] Copyright (C) Microsoft Corporation. All rights reserved.
[21:28:18] : [dotnet publish]
[21:28:18] : [dotnet publish] MSBUILD : error MSB1006: Property is not valid.
[21:28:18] : [dotnet publish] Switch: /opt/teamcity-agent-1/plugins/dotnet/tools/vstest15
[21:28:18] : [dotnet publish]
[21:28:18] : [dotnet publish] For switch syntax, type "MSBuild -help"
[21:28:18]W: [dotnet publish] Process exited with code 1
[21:28:18]E: [dotnet publish] Process exited with code 1 (Step: Publish (.NET))
When looking at /opt/teamcity-agent-1/temp/agentTmp/1.rsp
I can see the following line:
-p:VSTestTestAdapterPath=".;/opt/teamcity-agent-1/plugins/dotnet/tools/vstest15"
When I modify it to the below:
-p:VSTestTestAdapterPath="/opt/teamcity-agent-1/plugins/dotnet/tools/vstest15"
And then run the same command via bash, it works ok, but next time I run a build on TeamCity the 1.rsp file re-generates and the same problem occurs.
from teamcity-dotnet-plugin.
This seems to have been reported to the main dotnet sdk repo dotnet/sdk#26026
from teamcity-dotnet-plugin.
from teamcity-dotnet-plugin.
That's worked @NikolayPianikov - many thanks!
from teamcity-dotnet-plugin.
Could you please uprade the .NET plugin for TeamCity 2022
Thanks, but even with this update the build fails when the build configuration name contains a comma.
-p:teamcity_buildConfName="Linux, DebugMode off"
error:
[dotnet build] MSBUILD : error MSB1006: Property is not valid.
[dotnet build] Switch: DebugMode off)
from teamcity-dotnet-plugin.
NikolayPianikov We use sentinelOne, and after installing the ".NET plugin" you mentioned, sentinelOne classifies it as ransomware due to its behaviour. Is this something you can comment on?
from teamcity-dotnet-plugin.
@SRYER What program did this classification? .NET plugin doesn't have such feature
from teamcity-dotnet-plugin.
@loop-evgeny please try this plugin
We are currently on TeamCity 2020.2.4. Would the above plugin work for it or could you post a version for TC 2020.2? Thanks.
from teamcity-dotnet-plugin.
A hint to the readers of this issue (which I missed first): the global.json
does not need to be in the working/solution directory. You can also just place a global.json in your drive-root so that all builds on your server use this SDK version. This way we avoided updating all of our repositories and branches.
from teamcity-dotnet-plugin.
I've tried the new plugin but I'm having issues with multiple Nuget package sources. I tried to URL encode the semicolon separator but it looks like Team City parses the list and replaces my URL encoded semicolons with regular semicolons. Any workarounds for that or should I just force to SDK 6.0.300 instead?
from teamcity-dotnet-plugin.
@schwede what command are you using?
from teamcity-dotnet-plugin.
restore
I tried to provide --source commands directly in the command line arguments to workaround it but I can't clear what's put in the package sources in the rsp file. There must be some kind of inherited behavior in my build because I get the same text in "-p:PackageSources" no matter what I put in "NuGet package sources".
from teamcity-dotnet-plugin.
I'm getting the same issue with .NET restore, I pass in a Nuget.config file and get an error with the urls being passed as switches.
[dotnet restore] MSBUILD : error MSB1006: Property is not valid.
[dotnet restore] Switch: https://xxxxxxx/guestAuth/app/nuget/v1/FeedService.svc/
from teamcity-dotnet-plugin.
@NikolayPianikov Can you explain how to install the plugin please?
from teamcity-dotnet-plugin.
@NikolayPianikov Can you explain how to install the plugin please?
Administration -> Plugins -> [Upload plugin zip]
Then restart server as prompted.
from teamcity-dotnet-plugin.
same issue here. about to install TeamCity upgrade. I am hoping this does not cause further issues. All of our builds broke using 6.0.300
from teamcity-dotnet-plugin.
It looks like the root cause in dotnet/sdk#26026 is fixed as of .NET 6.0.303. I installed the latest version of .NET (6.0.400) and deleted my global.json workaround -- everything's working as expected now.
from teamcity-dotnet-plugin.
Related Issues (20)
- Dotnet test. Add ability to run test projects in parallel HOT 5
- Invalid semicolon escaping when passing property via .rsp HOT 3
- NUGET_PACKAGES environment variable not being picked up from the system HOT 19
- dotnet test - The argument /noconsolelogger is invalid. HOT 11
- The download link is borken HOT 1
- Generated .rsp file breaks command HOT 7
- dotnet restore returns 401 HOT 2
- .NET Cli output both TeamCity test messages and TRX file for SonarQube. HOT 4
- TC is unable to find DotNetCLI_Path when running a .NET core-based Docker image in a cloud agent HOT 2
- Custom feeds are not working HOT 2
- unmet requirement DotNetCLI_Path exists HOT 5
- Can't run tool install in <custom> HOT 6
- Cannot find MSBuild path on Teamcity Linux build agent HOT 6
- How can I install automatically the .NET Frameworks on an OnPrem Build Agent? HOT 2
- "Property is not valid" error caused by invalid values in rsp file HOT 6
- Problem with passing empty valued parameter from build configuration to rsp-file HOT 2
- how to run "dotnet test BuildDrop\Test\**\*.UnitTests.dll" HOT 3
- dotnet build with binlog and multiple csproj files HOT 2
- New plugin download? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teamcity-dotnet-plugin.