簡體   English   中英

添加對ASP.NET項目的引用

[英]Adding a reference to an ASP.NET project

我想使用以下系統參考:ASP.NET MVC項目上的System.Device.Location.CivicAddress() ,但是將其添加到using部分時沒有任何反應。

這是我的代碼段:

using System;
**using System.Device.Location;**
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Frappuccino.Models
{
    public class Client
    {
        [Key]
        public Int16 ID { get; set; }

        [Required]
        public String Name { get; set; }

        [Required]
        **public CivicAddress Address { get; set; }**        
    }
 }   

有人知道嗎

如果使用Visual Studio:

  • 在您的項目中,您將有一個引用“文件夾”。 右鍵單擊它,然后單擊“添加引用..”。
  • 或者,右鍵單擊您的項目,添加,然后單擊“引用..”。

這會將程序集添加到您的項目中。

資源

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM