Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

211
Views
Why are global using aliases not available in my unit test project?

I have a Foo.csproj with a class in it: Utils.cs. In my Foo.Tests.csproj, I have a UtilsTest.cs. In Utils.cs, I have a global alias:

global using ProfileDataCollection =
    System.Collections.Generic.IDictionary<string, TrashLib.Sonarr.ReleaseProfile.ProfileData>;

I was expecting ProfileDataCollection to now be usable everywhere, sort of like C++ typedefs. However, I'm not able to resolve this symbol from UtilsTest.cs. Do global usings not cross project-dependency boundaries?

I'm using .NET 6 + C# 10 with <ImplicitUsings> set to enable.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!