Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running the spacetime publish command in the absence of a Cargo.toml or a C# project gives a cryptic error message about dotnet #2136

Open
cloutiertyler opened this issue Jan 17, 2025 · 0 comments
Assignees

Comments

@cloutiertyler
Copy link
Contributor

cloutiertyler commented Jan 17, 2025

This is a well known issue, but the essence of it is, we use the presence of a Cargo.toml file to determine if we should run C# related commands.

~/clockwork/blackholio
$ spacetime publish --server local blackholio
MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
Error: command ["dotnet", "publish", "-c", "Release", "-v", "quiet"] exited with code 1

At the very least the DoD for this ticket is that if you run outside of a directory which could potentially be compiled into either a C# module or a Rust module, that you get an error that is more like:

No spacetime module in directory: /foo/bar
Did you mean to run publish on a different directory?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants