问题描述
我创建一个类库Buybuy,但命名空间和另一个类库保持一致都用namespaceshop.Commodities.ComponentsProductDetails.cs在shop下,<%@RegisterTagPrefix="shop"Namespace="shop.Web.Components"Assembly="shop.Web.Components"%><shop:ProductDetailsid="ProductDetails"runat="server"></shop:ProductDetails>这样可以用,没问题ShopProductDetails.cs在Buybuy下<%@RegisterTagPrefix="shop"Namespace="shop.Web.Components"Assembly="shop.Web.Components"%><shop:ShopProductDetailsid="ShopProductDetails"runat="server"></shop:ShopProductDetails>出错说ShopProductDetails不存在编译通过没问题的,可能是哪里的问题哦
解决方案
解决方案二:
ProductDetails.cs在shop下,<%@RegisterTagPrefix="shop"Namespace="shop.Web.Components"Assembly="shop.Web.Components"%><shop:ProductDetailsid="ShopProductDetails"runat="server"></shop:ProductDetails>这样可以用,没问题ShopProductDetails.cs在Buybuy下<%@RegisterTagPrefix="shop"Namespace="shop.Web.Components"Assembly="shop.Web.Components"%><shop:ShopProductDetailsid="ShopProductDetails"runat="server"></shop:ShopProductDetails>这样试试!我也不大懂哦之前有做过
解决方案三:
谢谢,我试试