PackageReferenceに切り替え後のビルドで「error CS0246 The type or namespace name ...」が発生
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
「[[マイクロソフト系技術情報 Wiki>http://techinfoofmicros...
-[[戻る>NuGet]]
* 目次 [#y8ecadda]
#contents
*概要 [#h3fd7148]
[[Package Reference>NuGet を使用したパッケージ管理#s3c3fc...
-CS0246 型または名前空間名 'xxxx' が見つかりませんでした...
-CS0246 The type or namespace name 'xxxx' could not be fo...
が出た。
*詳細 [#d16217af]
**対策1 [#mfd61247]
下記のような対策があったが、何れも効果は無かった。
-以下をインストールする。
Install-Package Microsoft.VisualStudio.Setup.Configurati...
-以下の設定を追加する。
<PropertyGroup>
<RestoreProjectStyle>PackageReference</RestoreProjectS...
</PropertyGroup>
[[.NET Standard]]、[[.NET Core]]だとバッチリ動いているが、~
.NET Framework の方の実装は問題があるようなので、~
.NET Framework 版は(、現時点では、)[[Package Reference>...
**対策2 [#raad396e]
nuget.exe restoreを削除して、~
MSBuildのオプションに以下を追加したら上手く動作した。
/t:Restore
※ [[NuGetリストア>ビルドスクリプト#b6fac5f7]]をnuget.exe ...
*参考 [#g4b1c744]
**NuGet/Home [#z162c736]
-Command line builds fail when UWP project.json project r...
https://github.com/NuGet/Home/issues/4804
-Automatically use PackageReference mode if referencing a...
https://github.com/NuGet/Home/issues/4581
**dotnet/standard [#nc410dee]
-Issues with .NET Standard 2.0 with .NET Framework & NuGe...
https://github.com/dotnet/standard/issues/481
----
Tags: [[:テスト]], [[:デバッグ]], [[:デプロイ]], [[:.NET...
終了行:
「[[マイクロソフト系技術情報 Wiki>http://techinfoofmicros...
-[[戻る>NuGet]]
* 目次 [#y8ecadda]
#contents
*概要 [#h3fd7148]
[[Package Reference>NuGet を使用したパッケージ管理#s3c3fc...
-CS0246 型または名前空間名 'xxxx' が見つかりませんでした...
-CS0246 The type or namespace name 'xxxx' could not be fo...
が出た。
*詳細 [#d16217af]
**対策1 [#mfd61247]
下記のような対策があったが、何れも効果は無かった。
-以下をインストールする。
Install-Package Microsoft.VisualStudio.Setup.Configurati...
-以下の設定を追加する。
<PropertyGroup>
<RestoreProjectStyle>PackageReference</RestoreProjectS...
</PropertyGroup>
[[.NET Standard]]、[[.NET Core]]だとバッチリ動いているが、~
.NET Framework の方の実装は問題があるようなので、~
.NET Framework 版は(、現時点では、)[[Package Reference>...
**対策2 [#raad396e]
nuget.exe restoreを削除して、~
MSBuildのオプションに以下を追加したら上手く動作した。
/t:Restore
※ [[NuGetリストア>ビルドスクリプト#b6fac5f7]]をnuget.exe ...
*参考 [#g4b1c744]
**NuGet/Home [#z162c736]
-Command line builds fail when UWP project.json project r...
https://github.com/NuGet/Home/issues/4804
-Automatically use PackageReference mode if referencing a...
https://github.com/NuGet/Home/issues/4581
**dotnet/standard [#nc410dee]
-Issues with .NET Standard 2.0 with .NET Framework & NuGe...
https://github.com/dotnet/standard/issues/481
----
Tags: [[:テスト]], [[:デバッグ]], [[:デプロイ]], [[:.NET...
ページ名: