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

fix directory not found when using .net 6 #2406

Merged
merged 1 commit into from
Sep 7, 2022

Conversation

Ninjastorm380
Copy link
Contributor

found a bug in your makefile in regards to .net 6. the output folder was changed to net6.0, so I updated your makefile to use any folder name, as well as clean beforehand so that there will be only one output folder.

@selkij
Copy link
Contributor

selkij commented Sep 6, 2022

duplicatas of #2322

@Ninjastorm380
Copy link
Contributor Author

Ninjastorm380 commented Sep 7, 2022

@Kiirx sadly not. the qemu related error was just a red herring for my case. the real issue was that the makefile expected to find the binaries at a net5.0 folder, when my system would instead produce a net6.0 folder. these lines in particular are affected by this issue:


	@cp -r $(IL2CPU_DIR)/source/IL2CPU/bin/Debug/net5.0/linux-x64/publish/* $(DESTDIR)/Build/IL2CPU/
	@cp -r $(THISDIR)/source/Cosmos.Core_Plugs/bin/Debug/net5.0/publish/*.dll $(DESTDIR)/Kernel/
	@cp -r $(THISDIR)/source/Cosmos.System2_Plugs/bin/Debug/net5.0/publish/*.dll $(DESTDIR)/Kernel/
	@cp -r $(THISDIR)/source/Cosmos.HAL2/bin/Debug/net5.0/publish/*.dll $(DESTDIR)/Kernel/
	@cp -r $(THISDIR)/source/Cosmos.Debug.Kernel.Plugs.Asm/bin/Debug/netstandard2.0/publish/*.dll $(DESTDIR)/Kernel/

what worked for me:

	@cp -r $(IL2CPU_DIR)/source/IL2CPU/bin/Debug/net6.0/linux-x64/publish/* $(DESTDIR)/Build/IL2CPU/
	@cp -r $(THISDIR)/source/Cosmos.Core_Plugs/bin/Debug/net6.0/publish/*.dll $(DESTDIR)/Kernel/
	@cp -r $(THISDIR)/source/Cosmos.System2_Plugs/bin/Debug/net6.0/publish/*.dll $(DESTDIR)/Kernel/
	@cp -r $(THISDIR)/source/Cosmos.HAL2/bin/Debug/net6.0/publish/*.dll $(DESTDIR)/Kernel/
	@cp -r $(THISDIR)/source/Cosmos.Debug.Kernel.Plugs.Asm/bin/Debug/netstandard2.0/publish/*.dll $(DESTDIR)/Kernel/

and what I modified so this issue would be solved:

	@cp -r $(IL2CPU_DIR)/source/IL2CPU/bin/Debug/*/linux-x64/publish/* $(DESTDIR)/Build/IL2CPU/
	@cp -r $(THISDIR)/source/Cosmos.Core_Plugs/bin/Debug/*/publish/*.dll $(DESTDIR)/Kernel/
	@cp -r $(THISDIR)/source/Cosmos.System2_Plugs/bin/Debug/*/publish/*.dll $(DESTDIR)/Kernel/
	@cp -r $(THISDIR)/source/Cosmos.HAL2/bin/Debug/*/publish/*.dll $(DESTDIR)/Kernel/
	@cp -r $(THISDIR)/source/Cosmos.Debug.Kernel.Plugs.Asm/bin/Debug/netstandard2.0/publish/*.dll $(DESTDIR)/Kernel/

Edit: this problem is caused by having .net 6 installed, which is the default SDK now when installing dotnet

Copy link
Member

@quajak quajak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@quajak quajak merged commit 1f75e0d into CosmosOS:crossplatform Sep 7, 2022
@Ninjastorm380 Ninjastorm380 deleted the crossplatform branch September 7, 2022 17:51
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

Successfully merging this pull request may close these issues.

3 participants