Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xamarin.forms 将Uno上的WASM导入已建立的Xamarin表单解决方案-给出SPA错误no index.html_Xamarin.forms_Webassembly_Uno - Fatal编程技术网

Xamarin.forms 将Uno上的WASM导入已建立的Xamarin表单解决方案-给出SPA错误no index.html

Xamarin.forms 将Uno上的WASM导入已建立的Xamarin表单解决方案-给出SPA错误no index.html,xamarin.forms,webassembly,uno,Xamarin.forms,Webassembly,Uno,我在现有的70页Xamarin表单应用程序中添加了一个WASM项目负责人;一旦我将图像复制到UWP中,UWP就可以正常工作,但要让WASM正常工作会有很大的困难:导致SPA错误re missing index.html 引述: InvalidOperationException:SPA默认页面中间件无法返回默认页面“/index.html”,因为找不到该页面,并且没有其他中间件处理该请求。 Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddle

我在现有的70页Xamarin表单应用程序中添加了一个WASM项目负责人;一旦我将图像复制到UWP中,UWP就可以正常工作,但要让WASM正常工作会有很大的困难:导致SPA错误re missing index.html

引述:

InvalidOperationException:SPA默认页面中间件无法返回默认页面“/index.html”,因为找不到该页面,并且没有其他中间件处理该请求。 Microsoft.AspNetCore.SpaServices.SpaDefaultPageMiddleware+c_uuuDisplayClass0_0.b_uuu1(HttpContext上下文,Func next)

UWP版本运行正常,我知道WASM依赖于此;有人知道我如何解决这个问题吗

什么会阻止生成写入dist文件夹?(位于bin\debug\netstandard2.0文件夹下

在Windows 10 Pro上使用vs2019社区版v16.9.4