Comments (4)
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
from sdk.
Do you have a simple repro of the problem please? Are you referencing the full Microsoft.TestPlatform package because you need to find the runner afterwards? How exactly are you running your tests? Is it via dotnet test
of through vstest.console.exe from the referenced Microsoft.TestPlatform package?
from sdk.
Here's a repro branch and build where the error happens:
https://github.com/simple-odata-client/Simple.OData.Client/actions/runs/8462294502/job/23183433497?pr=929#step:6:31
Of note, the project Simple.OData.Tests.Shared.NorthwindService
is NOT a unit test project. However, the only way to make this issue go away is to add those two test packages to this non-test project, as I did here: https://github.com/simple-odata-client/Simple.OData.Client/actions/runs/8447531397/job/23138040282.
Then the build will execute properly.
The codebase in question uses Directory.Build.props to pull the two packages above into the other test projects.
Lemme know if you have any questions. Thanks!
from sdk.
Your directory build props mark the project as IsTestProject
which is used by the VSTest build target to either run or skip tests. This is normally used to suppress running test projects when they have all the dependencies (like Microsoft.NET.Test.SDK) but don't hold any tests. You are facing the problem from the other side.
from sdk.
Related Issues (20)
- Many tools in the SDK repo are producing packages HOT 1
- Support a new launch profile type to launch the project in a container HOT 1
- ILLink_links_simple_app_without_analysis_warnings_and_it_runs failing in 8.0.1xx HOT 6
- StackOverflowException after upgrading from .Net 6 to .Net 8 HOT 9
- Conversion error (CS0029) during compilation in .NET SDK 8.0.300 HOT 2
- Trivy scanning of dotnet-sdk 8.0 HOT 3
- Baseline package validator should allow breaking changes in major versions HOT 1
- dotnet watch fails with MSB3021 (locked file) when project references custom source generator HOT 1
- `slnx` support in the `dotnet` CLI HOT 5
- AARCH64 Aot build fail on linux with `unrecognised emulation mode: aarch64linux` HOT 1
- --nodereuse:false not closing all dotnet.exe processes after build or publish HOT 4
- Support AOT tools in .NET tools HOT 2
- Enable tests on container-based Linux legs and determine what tests should run there
- 🐞 NullReferenceException in Maui UnitTests
- Problema para acompanhar o tutorial da Microsoft de Aplicativo NetMaui!!!! HOT 1
- CVE-2023-29331 - dotnet-watch depends on out of date System.Security.Cryptography.Pkcs HOT 1
- Project restore fails for .NET MAUI Hybrid App on .NET 8 - Workload dependency issue HOT 4
- Slow Ping HOT 4
- InvalidProjectFileException thrown for shared projects (.shproj) when doing a workload restore on Linux HOT 3
- -p:DebugSymbols=false does not disable generation of .pdb files
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 sdk.