Jump to content
  • 0

Error server when development, edit source code??


Question

Posted

I want to add a new random stat for item, but get this error. please help me

a640f629112d97d68b4646a9cd9830f9.png

 

line code when debug server.exe

line code when debug server.exe

public ICollection<string> PendingMigrations =>
            Database?.GetPendingMigrations()?.ToList() ?? new List<string>();

maybe because the database. I don't know how to fix it!! thank you!

 

Recommended Posts

  • 0
Posted
3 minutes ago, Cheshire said:

Right, in that case using the Add-Migration command should do fine like this:

 

Add-Migration -Context GameContext AddRandomStatToItems

 

Then switch back to debug mode and compile/run as usual and it should upgrade your database.

"Set startup project to Intersect Server, and the build type to NoFody" 

Do I need to do this?

  • 0
Posted
9 minutes ago, Cheshire said:

Right, in that case using the Add-Migration command should do fine like this:

 

Add-Migration -Context GameContext AddRandomStatToItems

 

Then switch back to debug mode and compile/run as usual and it should upgrade your database.

this build failed. 

  • 0
Posted
7 minutes ago, nvh said:

"Set startup project to Intersect Server, and the build type to NoFody" 

Do I need to do this?

 

Yes, follow the steps as usual.

 

2 minutes ago, nvh said:

this build failed. 

 

Might need a bit more info, sorry. lol

  • 0
Posted
1 minute ago, Cheshire said:

 

Yes, follow the steps as usual.

 

 

Might need a bit more info, sorry. lol

sorry, i don't know what info :))

  • 0
Posted
Just now, Cheshire said:

The reason it's failing would be a primary suspect.

Spoiler

Severity    Code    Description    Project    File    Line    Suppression State
Error        Fody: No weavers found for the configuration entries Costura. Add the desired weavers via their nuget package.    Intersect.Client            
Severity    Code    Description    Project    File    Line    Suppression State
Error        The build restored NuGet packages. Build the project again to include these packages in the build.    Intersect.Editor    E:\DuAnGame\Intersect\TV(Delop)\Intersect-Engine-main\Intersect.Editor\Intersect.Editor.csproj    896    


 

  • 0
Posted
3 minutes ago, Cheshire said:

Does it work now that it has restored Nuget packages?

when rebuild all solution with nofody.

 

only 1 error. 1 error left

Severity	Code	Description	Project	File	Line	Suppression State
Error		The build restored NuGet packages. Build the project again to include these packages in the build.	Intersect.Editor	E:\DuAnGame\Intersect\TV(Delop)\Intersect-Engine-main\Intersect.Editor\Intersect.Editor.csproj	896	

 

  • 0
Posted
32 minutes ago, Cheshire said:

Right, in that case using the Add-Migration command should do fine like this:

 

Add-Migration -Context GameContext AddRandomStatToItems

 

Then switch back to debug mode and compile/run as usual and it should upgrade your database.

restart Visual Studio. It's work

  • 0
Posted
3 minutes ago, Cheshire said:

Cool! Migrations are a bit tricky to work with the first time but when you've got it set up they're pretty convenient!

Today is a great day to have you! thank you

I will take a break to continue tomorrow

  • 0
Posted
3 minutes ago, nvh said:

Is this worrisome?d6b2fa07c0386f8bdc434120f300d624.png

 

Not really, just means it generated a brand new configuration file.

I'm guessing you didn't have anything in the folder the server runs from there.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...