![](/img/trans.png)
[英]error CS0234: The type or namespace name 'Script' does not exist in the namespace 'System.Web'
[英]Silverlight 3D XNA Error - The type or namespace does not exist
我正在嘗試遵循一些教程來構建Silverlight 3D XNA項目。
我能夠顯示3D表面,但是一旦開始使用Vector3
或VertexPositionNormalTexture
(或使用任何XNA幫助器實體),我就會發現類型或名稱不存在。
我有這些包括:
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
我已經在Silverlight項目中包括了參考,即:
Microsoft.Xna.Framework
Microsoft.Xna.Framework.Graphics
Microsoft.Xna.Framework.Graphics.Extensions
System.Windows.Xna
還有很多其他我不確定是否相關。 它們在.NET選項卡下,也許我需要將它們放在其他位置,這些不是Silverlight嗎? 我不確定。
我正在使用Visual Studio 2010專業版,Silverlight 5和XNA 4
我已經設法讓XNA在單獨的項目中在Silverlight中工作,我很自信我錯過了一些東西。 只需仔細檢查所有內容。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.