C
C#12mo ago
JoJoCa

✅ dotnet watch not working

im trying to run a mod that works using the api for a minecraft server, though when I try to run the main API using the dotnet watch commad in my terminal I get this
dotnet watch :x: Error(s) finding watch items project file 'SkyApi.csproj'
dotnet watch :watch: MSBuild output from target 'GenerateWatchList':
dotnet watch :watch:
dotnet watch :watch: Build started 08/08/2023 16:24:26.
dotnet watch :watch: 1>Project "C:\Users\********\Documents\skyblock\SkyApi\SkyApi.csproj" on node 1 (GenerateWatchList target(s)).
dotnet watch :watch: 1>Project "C:\Users\********\Documents\skyblock\SkyApi\SkyApi.csproj" (1) is building "C:\Users\********\Documents\skyblock\SkyBackendForFrontend\SkyBackendForFrontend.csproj" (3) on node 2 (_CollectWatchItems target(s)).
dotnet watch :watch: 3>C:\Program Files\dotnet\sdk\7.0.306\DotnetTools\dotnet-watch\7.0.306-servicing.23321.40\tools\net7.0\any\DotNetWatch.targets(92,5): error MSB3202: The project file "../websocket-sharp/websocket-sharp/websocket-sharp.csproj" was not found. [C:\Users\********\Documents\skyblock\SkyBackendForFrontend\SkyBackendForFrontend.csproj]
dotnet watch :watch: 3>Done Building Project "C:\Users\********\Documents\skyblock\SkyBackendForFrontend\SkyBackendForFrontend.csproj" (_CollectWatchItems target(s)) -- FAILED.
dotnet watch :watch: 1>Done Building Project "C:\Users\********\Documents\skyblock\SkyApi\SkyApi.csproj" (GenerateWatchList target(s)) -- FAILED.
dotnet watch :watch: Build FAILED.
dotnet watch :watch: "C:\Users\********\Documents\skyblock\SkyApi\SkyApi.csproj" (GenerateWatchList target) (1) ->
dotnet watch :watch: "C:\Users\********\Documents\skyblock\SkyBackendForFrontend\SkyBackendForFrontend.csproj" (_CollectWatchItems target) (3) ->
dotnet watch :watch: (_CoreCollectWatchItems target) ->
dotnet watch :watch: C:\Program Files\dotnet\sdk\7.0.306\DotnetTools\dotnet-watch\7.0.306-servicing.23321.40\tools\net7.0\any\DotNetWatch.targets(92,5): error MSB3202: The project file "../websocket-sharp/websocket-sharp/websocket-sharp.csproj" was not found. [C:\Users\********\Documents\skyblock\SkyBackendForFrontend\SkyBackendForFrontend.csproj]
dotnet watch :watch: 0 Warning(s)
dotnet watch :watch: 1 Error(s)
dotnet watch :watch: Time Elapsed 00:00:01.99
dotnet watch :watch:
dotnet watch :x: Error(s) finding watch items project file 'SkyApi.csproj'
dotnet watch :watch: MSBuild output from target 'GenerateWatchList':
dotnet watch :watch:
dotnet watch :watch: Build started 08/08/2023 16:24:26.
dotnet watch :watch: 1>Project "C:\Users\********\Documents\skyblock\SkyApi\SkyApi.csproj" on node 1 (GenerateWatchList target(s)).
dotnet watch :watch: 1>Project "C:\Users\********\Documents\skyblock\SkyApi\SkyApi.csproj" (1) is building "C:\Users\********\Documents\skyblock\SkyBackendForFrontend\SkyBackendForFrontend.csproj" (3) on node 2 (_CollectWatchItems target(s)).
dotnet watch :watch: 3>C:\Program Files\dotnet\sdk\7.0.306\DotnetTools\dotnet-watch\7.0.306-servicing.23321.40\tools\net7.0\any\DotNetWatch.targets(92,5): error MSB3202: The project file "../websocket-sharp/websocket-sharp/websocket-sharp.csproj" was not found. [C:\Users\********\Documents\skyblock\SkyBackendForFrontend\SkyBackendForFrontend.csproj]
dotnet watch :watch: 3>Done Building Project "C:\Users\********\Documents\skyblock\SkyBackendForFrontend\SkyBackendForFrontend.csproj" (_CollectWatchItems target(s)) -- FAILED.
dotnet watch :watch: 1>Done Building Project "C:\Users\********\Documents\skyblock\SkyApi\SkyApi.csproj" (GenerateWatchList target(s)) -- FAILED.
dotnet watch :watch: Build FAILED.
dotnet watch :watch: "C:\Users\********\Documents\skyblock\SkyApi\SkyApi.csproj" (GenerateWatchList target) (1) ->
dotnet watch :watch: "C:\Users\********\Documents\skyblock\SkyBackendForFrontend\SkyBackendForFrontend.csproj" (_CollectWatchItems target) (3) ->
dotnet watch :watch: (_CoreCollectWatchItems target) ->
dotnet watch :watch: C:\Program Files\dotnet\sdk\7.0.306\DotnetTools\dotnet-watch\7.0.306-servicing.23321.40\tools\net7.0\any\DotNetWatch.targets(92,5): error MSB3202: The project file "../websocket-sharp/websocket-sharp/websocket-sharp.csproj" was not found. [C:\Users\********\Documents\skyblock\SkyBackendForFrontend\SkyBackendForFrontend.csproj]
dotnet watch :watch: 0 Warning(s)
dotnet watch :watch: 1 Error(s)
dotnet watch :watch: Time Elapsed 00:00:01.99
dotnet watch :watch:
12 Replies
Pobiega
Pobiega12mo ago
Read the errors. The project you are compiling seems to link to something called websocket-sharp which should be a local dependency but isnt
JoJoCa
JoJoCa12mo ago
yeah I did, but I can't figure out what websocket-sharp is I tried cloning it from the mod github like I did with the other dependencies but it doesnt exist
Pobiega
Pobiega12mo ago
well, looking at that repo, it seems you shouldnt be running it by itself the readme for the SkyBackendForFrontend repo states...
This project should be deployed within a container.
and if we then look at the dockerfile, it seems its supposed to be run via the hypixel repo RUN git clone --depth=1 https://github.com/Coflnet/HypixelSkyblock.git dev
JoJoCa
JoJoCa12mo ago
I have all the required parts in a docker file yeah
Pobiega
Pobiega12mo ago
well, im sorry to say this isnt a problem with dotnet you are missing a local dependency. perhaps you could try replacing it with a package dependency for the same project, if one exists
JoJoCa
JoJoCa12mo ago
alright I'll try that, thank you! a different question tho, when I do dotnet watch, I get this error
crit: Microsoft.AspNetCore.Hosting.Diagnostics[6]
Application startup exception
StackExchange.Redis.RedisConnectionException: It was not possible to connect to the redis server(s). UnableToConnect on redis:6379/Interactive, Initializing/NotStarted, last: NONE, origin: BeginConnectAsync, outstanding: 0, last-read: 2s ago, last-write: 2s ago, keep-alive: 60s, state: Connecting, mgr: 10 of 10 available, last-heartbeat: never, global: 6s ago, v: 2.2.4.27433
at StackExchange.Redis.ConnectionMultiplexer.ConnectImpl(ConfigurationOptions configuration, TextWriter log) in /_/src/StackExchange.Redis/ConnectionMultiplexer.cs:line 1163
at StackExchange.Redis.ConnectionMultiplexer.Connect(ConfigurationOptions configuration, TextWriter log) in /_/src/StackExchange.Redis/ConnectionMultiplexer.cs:line 1032
at Coflnet.Sky.Api.Startup.<>c__DisplayClass5_0.<ConfigureServices>b__4(IServiceProvider provider) in C:\Users\Jonah\Documents\skyblock\SkyApi\Startup.cs:line 96
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType)
crit: Microsoft.AspNetCore.Hosting.Diagnostics[6]
Application startup exception
StackExchange.Redis.RedisConnectionException: It was not possible to connect to the redis server(s). UnableToConnect on redis:6379/Interactive, Initializing/NotStarted, last: NONE, origin: BeginConnectAsync, outstanding: 0, last-read: 2s ago, last-write: 2s ago, keep-alive: 60s, state: Connecting, mgr: 10 of 10 available, last-heartbeat: never, global: 6s ago, v: 2.2.4.27433
at StackExchange.Redis.ConnectionMultiplexer.ConnectImpl(ConfigurationOptions configuration, TextWriter log) in /_/src/StackExchange.Redis/ConnectionMultiplexer.cs:line 1163
at StackExchange.Redis.ConnectionMultiplexer.Connect(ConfigurationOptions configuration, TextWriter log) in /_/src/StackExchange.Redis/ConnectionMultiplexer.cs:line 1032
at Coflnet.Sky.Api.Startup.<>c__DisplayClass5_0.<ConfigureServices>b__4(IServiceProvider provider) in C:\Users\Jonah\Documents\skyblock\SkyApi\Startup.cs:line 96
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType)
Pobiega
Pobiega12mo ago
yeah, redis cant connect at the given connectionstring redis:6379/Interactive seems to be the endpoint its trying to reach. looks like a docker compose endpoint
JoJoCa
JoJoCa12mo ago
What does that mean? Do I need to change something in docker itself?
Pobiega
Pobiega12mo ago
you shouldnt be starting this via dotnet watch you should be starting it via docker compose this server, whatever it is, has several dependencies. including a distributed cache system called redis you didnt start a redis server, or if you did you didnt change the connectionstring for it
JoJoCa
JoJoCa12mo ago
ah ok, uh what command do I use to start said file? the folder has a dockerfile inside so do I just type docker-compose in my terminal?
Pobiega
Pobiega12mo ago
Im sure google can tell you all you need to know about docker compose
Accord
Accord12mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.