C
C#11mo ago
Pibbles

Visual Studio project reference not updating with new code

Basically I have 2 projects in separate solutions, API and Data (the projects) API usually references a package for the Data project, but I've removed that, and added my local Data project as a reference in both the API solution and project. But when I go through the API project, on parts where it's "using Data.Models", if I step into the classes, they aren't my local classes. It takes me to some CompilerGenerated class model when stepping into the Data.Models stuff
12 Replies
Angius
Angius11mo ago
Why would you have them under separate solutions...?
Pibbles
Pibbles11mo ago
idk man I didn't make this I just have to live with it, work
Kouhai
Kouhai11mo ago
Make sure in the API project you're referencing the Data project and not the compiled dll/package for the Data project.
Pibbles
Pibbles11mo ago
how would I test that? I mean by the looks of it I am so follow up, how would I fix that?
Kouhai
Kouhai11mo ago
Check your csproj file, does it have any references to a dll/package?
Pibbles
Pibbles11mo ago
naw I always remove that manually when adding the new project ref I just found it ffs apparently there's another project in data and that project references the thing I want
Kouhai
Kouhai11mo ago
AMlaugh
Pibbles
Pibbles11mo ago
I've spent more time trying to be able to test my code than I have writing it and definitely testing it
Kouhai
Kouhai11mo ago
It happens
Pibbles
Pibbles11mo ago
ha nevermind it didn't work love it, well I'll keep looking into it
Kouhai
Kouhai11mo ago
Try to reference the Data project in just a new console template or smth
Pibbles
Pibbles11mo ago
oh boy it finally actually really does work this time, code is just the best :)
Want results from more Discord servers?
Add your server
More Posts
✅ HTTP Error 500.30 - ASP.NET Core app failed to startHello! I'm getting this error after deploying a net core app to IIS 10 (Windows 10 pc). Publish se✅ what is a .zero resource file?im looking at some code for an encoder/decoder and it uses a resource file called Aura.zero but its ❔ What is the best GUI system for C#?Does anyone know a good lib that impliment a gui system?Background service to consume a rabbitmq queue, messages unackedI have a background worker which listens to a rabbitmq queue for email sending. The messages are add❔ What is default data types when reading from Excel sheet for upload into DB.?I was trying to upload a excel sheet but having type miss match error while the data types in excel ❔ What is available approaches to communicate between MicroservicesHello dear friends, Let's assume we have a project has the following Microservices (AuthMicroservice✅ Could not load assembly UWP [Mysql Data] (Resolved alone)Hello everyone. I reached something interesting this last hours. I can't work anymore on my project.❔ How to implement an "undo move" function in a game where I need to keep track of multiple objects?PS: I'm using Unity by the way. tldr; In my game, every time the player moves one tile, different o❔ ✅ 'Engines' does not exist in the namespace 'BenchmarkDotNet'Other than a problem, I'm not sure what I've got going on here. In the terminal, I've tried `dotnet❔ nuget doesnt work anymore. IHi, I checked the settings and it seems good. https://api.nuget.org/v3/index.json I get the follow