asp.net 6 ๊ธฐ์ค์ผ๋ก
๋น๋๋๊ฒ๋ค
wwwroot์ ์ฌ๋ ค์ฃผ๊ณ
index.html์ ๋ค์ด๊ฐ๋๋ฐ 404 ๊ฐ์๊ฑฐ ใ ใน ๋ธ
๊ทธ๋์ index.html ์ ์๋ ์คํฌ๋ฆฝํธ ๋ถ๋ถ์์ ์ ๋ํฐ ํ์ผ๋ค ์๋ wwwroot ํด๋ ๊ฒฝ๋ก ๋ค ๊ณ ์ณ์ฃผ๊ณ
program.cs ์
/* unity webgl setting */
StaticFileOptions options = new StaticFileOptions();
FileExtensionContentTypeProvider contentTypeProvider = (FileExtensionContentTypeProvider)options.ContentTypeProvider ?? new FileExtensionContentTypeProvider();
contentTypeProvider.Mappings.Add(".unityweb", "application/octetโstream");
contentTypeProvider.Mappings.Add(".data", "application/octetโstream");
options.ContentTypeProvider = contentTypeProvider;
/* unity webgl setting END */
app.UseStaticFiles(options);
์ด๊ฑฐ ์ถ๊ฐํ๊ณ ๋ค์ด๊ฐ๋ณด๋ ์ด๋ฒ์๋
asp.net ์๋ฒ์์ System.InvalidOperationException: Invalid non-ASCII or control character in header: 0x2014
์ด๋ฐ ์๋ฌ๊ฐ๋จ
๋ด๊ฐ ์ด์์ค์ธ ์๋ฒ์ ์ ๋ํฐ webgl๋ก ๋น๋ํ๊ฑฐ ๋๋ฆฌ๋ ๋ฐฉ๋ฒ ์๋์ฌ๋??
๋ ธ๋์์ ๊ทธ๋ฅ ๋ฐ๋ก ๋์๊ฐ๋๋
๋ ธ๋์์๋ ์๋จ... ํน์ ๊นํ ๊ณต์ ๊ฐ๋ฅ?
https://docs.unity3d.com/kr/current/Manual/webgl-deploying.html
๋ฌธ์์ข ์ฝ์ผ๋ ด...
์ ๊ฑฐ ์ข ๊ณ ์ ๋ฌธ์๋ค. asp.net 6 ๊ธฐ์ค์ผ๋ก ๋์จ๊ฑธ ์ค์ผ์ง...
์น์ง์ ๊ฐ์ฐ๋ ๊ธด๋ฐ ใ ใ ๋ญํ๋ฌ ํ์ง๊ฑฐ๋ฆฌํ๋
๋ช ์พํ ๋ต๋ณ ๊ณ ๋ง๋ค
webgl ์๋ฒ์ ์ฌ๋ฆฌ๋๊น ๊ฑ ์ค๋ฌด์คํ๊ฒ ๋๋๋ฐ..? ์๋ฒ ๋ฌธ์ ์ธ๋ฏ
Build ์์ ์๋ data๋ framework๊ฐ์ ํ์ผ ๊ฒฝ๋ก๋ ์น ๋ง์ถ๊ฑฐ์?