jspuij / BlazorWebViewTutorial

Tutorials for BlazorWebView
10 stars 3 forks source link

Could not find a part of the path ".../BlazorWebViewTutorial.Shared/wwwroot/css/bootstrap/bootstrap.min.css". #1

Open am-kh opened 4 years ago

am-kh commented 4 years ago

Thank you for this repo, When I run the IOS project , I get this error

System.IO.DirectoryNotFoundException: Could not find a part of the path "/Users/MyAccount/Library/Caches/Xamarin/mtbs/builds/BlazorWebViewTutorial.IosApp/BlazorWebViewTutorial.Shared/wwwroot/css/bootstrap/bootstrap.min.css". at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0015e] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.IO/FileStream.cs:223 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.IO/FileStream.cs:106 at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions) at System.IO.FileSystem.CopyFile (System.String sourceFullPath, System.String destFullPath, System.Boolean overwrite) [0x00025] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs:54 at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x00056] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/File.cs:74 at Xamarin.MacDev.Tasks.SmartCopyTaskBase.CopyFile (System.String source, System.String target, System.String targetItemSpec) [0x0002d] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/msbuild/Xamarin.MacDev.Tasks.Core/Tasks/SmartCopyTaskBase.cs:68 at Xamarin.MacDev.Tasks.SmartCopyTaskBase.Execute () [0x000a4] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/msbuild/Xamarin.MacDev.Tasks.Core/Tasks/SmartCopyTaskBase.cs:101 BlazorWebViewTutorial.IosApp

Thank you for your help

jspuij commented 4 years ago

What are you using to run / debug the application? I'm using visual studio 8.6.4 (build 14). dotnet --version is version 3.1.301. I'm running it on the emulator, but the phone works as well. I've just checked the sample and here it still builds and runs.

am-kh commented 4 years ago

I run it with

jspuij commented 4 years ago

Ah, you’re using VS for windows with a remote Mac. I’ll check that tomorrow at work, I have the same setup there. I used VS for Mac to develop it, although it should not matter.

am-kh commented 4 years ago

Yes exactly. thank you

jspuij commented 4 years ago

I've tested it at work and indeed it seems that Visual Studio 2019 on a windows PC uses different build targets than visual studio for mac directly. This means that I will have to adapt BlazorWebView to include build targets for Visual Studio 2019 and remote macs. This will take some time. For now, is it possible for you to use Visual Studio for Mac directly on the Mac?