Relax --noframework for mscorlib, netstandard and system.runtime (#7612)

* Eliminate Relax requirement to apply --noframework when referencing mscorlib/system.runtime.dll/netstandard.dll

* Relax requirement to pass --noframework with System.Runtime, netstandard and mscorlib.dll
This commit is contained in:
Kevin Ransom (msft) 2019-09-24 12:20:18 -07:00 коммит произвёл GitHub
Родитель b834b1284e
Коммит d44950e2b6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
16 изменённых файлов: 0 добавлений и 73 удалений

Просмотреть файл

@ -2589,12 +2589,6 @@ type TcConfig private (data: TcConfigBuilder, validate: bool) =
| Some _ -> dllReference
| None -> AssemblyReference(range0, getDefaultFSharpCoreReference, None)
// If either mscorlib.dll/System.Runtime.dll/netstandard.dll or FSharp.Core.dll are explicitly specified then we require the --noframework flag.
// The reason is that some non-default frameworks may not have the default dlls. For example, Client profile does
// not have System.Web.dll.
do if (primaryAssemblyExplicitFilenameOpt.IsSome && data.framework) then
error(Error(FSComp.SR.buildExplicitCoreLibRequiresNoFramework("--noframework"), rangeStartup))
// clrRoot: the location of the primary assembly (mscorlib.dll or netstandard.dll or System.Runtime.dll)
//
// targetFrameworkVersionValue: Normally just HighestInstalledNetFrameworkVersion()

Просмотреть файл

@ -182,7 +182,6 @@ module internal FSharp.Compiler.DotNetFrameworkDependencies
// (a) included in the environment used for all .fsx files (see service.fs)
// (b) included in environment for files 'orphaned' from a project context
// -- for orphaned files (files in VS without a project context)
// -- for files given on a command line without --noframework set
let getDesktopDefaultReferences useFsiAuxLib = [
yield "mscorlib"
yield "System"

Просмотреть файл

@ -1086,7 +1086,6 @@ lexIndentOffForML,"Consider using a file with extension '.ml' or '.mli' instead"
1219,tcUnionCaseNameConflictsWithGeneratedType,"The union case named '%s' conflicts with the generated type '%s'"
1220,chkNoReflectedDefinitionOnStructMember,"ReflectedDefinitionAttribute may not be applied to an instance member on a struct type, because the instance member takes an implicit 'this' byref parameter"
1221,tcDllImportNotAllowed,"DLLImport bindings must be static members in a class or function definitions in a module"
1222,buildExplicitCoreLibRequiresNoFramework,"When mscorlib.dll is explicitly referenced the %s option must also be passed"
1223,buildExpectedSigdataFile,"FSharp.Core.sigdata not found alongside FSharp.Core. File expected in %s. Consider upgrading to a more recent version of FSharp.Core, where this file is no longer be required."
1225,buildExpectedFileAlongSideFSharpCore,"File '%s' not found alongside FSharp.Core. File expected in %s. Consider upgrading to a more recent version of FSharp.Core, where this file is no longer be required."
1227,buildUnexpectedFileNameCharacter,"Filename '%s' contains invalid character '%s'"

Просмотреть файл

@ -5322,11 +5322,6 @@
<target state="translated">Vazby DLLImport musí být statickými členy v definici třídy nebo funkce v modulu.</target>
<note />
</trans-unit>
<trans-unit id="buildExplicitCoreLibRequiresNoFramework">
<source>When mscorlib.dll is explicitly referenced the {0} option must also be passed</source>
<target state="needs-review-translation">Pokud se na knihovnu mscorlib.dll nebo FSharp.Core.dll odkazuje explicitně, musí se předávat taky možnost {0}.</target>
<note />
</trans-unit>
<trans-unit id="buildExpectedSigdataFile">
<source>FSharp.Core.sigdata not found alongside FSharp.Core. File expected in {0}. Consider upgrading to a more recent version of FSharp.Core, where this file is no longer be required.</source>
<target state="translated">V FSharp.Core se nenašel soubor FSharp.Core.sigdata. Soubor se očekával v {0}. Zvažte upgrade na novější verzi FSharp.Core, kde se tento soubor už nevyžaduje.</target>

Просмотреть файл

@ -5322,11 +5322,6 @@
<target state="translated">Bei DLLImport-Bindungen muss es sich um statische Member von Klassen- oder Funktionsdefinitionen eines Moduls handeln.</target>
<note />
</trans-unit>
<trans-unit id="buildExplicitCoreLibRequiresNoFramework">
<source>When mscorlib.dll is explicitly referenced the {0} option must also be passed</source>
<target state="needs-review-translation">Wenn explizit auf "mscorlib.dll" oder "FSharp.Core.dll" verwiesen wird, muss auch die Option "{0}" übergeben werden.</target>
<note />
</trans-unit>
<trans-unit id="buildExpectedSigdataFile">
<source>FSharp.Core.sigdata not found alongside FSharp.Core. File expected in {0}. Consider upgrading to a more recent version of FSharp.Core, where this file is no longer be required.</source>
<target state="translated">FSharp.Core.sigdata wurde nicht neben "FSharp.Core" gefunden. Die Datei wurde in {0} erwartet. Erwägen Sie ein Upgrade auf eine aktuellere Version von "FSharp.Core", in der die Datei nicht mehr erforderlich ist.</target>

Просмотреть файл

@ -5322,11 +5322,6 @@
<target state="translated">Los enlaces DLLImport deben ser miembros estáticos en definiciones de función o clase dentro de un módulo.</target>
<note />
</trans-unit>
<trans-unit id="buildExplicitCoreLibRequiresNoFramework">
<source>When mscorlib.dll is explicitly referenced the {0} option must also be passed</source>
<target state="needs-review-translation">Cuando se hace referencia de forma explícita a mscorlib.dll o FSharp.Core.dll, debe pasarse también la opción {0}.</target>
<note />
</trans-unit>
<trans-unit id="buildExpectedSigdataFile">
<source>FSharp.Core.sigdata not found alongside FSharp.Core. File expected in {0}. Consider upgrading to a more recent version of FSharp.Core, where this file is no longer be required.</source>
<target state="translated">No se encontró FSharp.Core.sigdata junto con FSharp.Core. Archivo esperado en {0}. Considere la posibilidad de actualizar a una versión más reciente de FSharp.Core en la que ya no se requiere el archivo.</target>

Просмотреть файл

@ -5322,11 +5322,6 @@
<target state="translated">Les liaisons DLLImport doivent être des membres statiques dans une classe ou des définitions de fonction dans un module</target>
<note />
</trans-unit>
<trans-unit id="buildExplicitCoreLibRequiresNoFramework">
<source>When mscorlib.dll is explicitly referenced the {0} option must also be passed</source>
<target state="needs-review-translation">Lorsque mscorlib.dll ou FSharp.Core.dll est explicitement référencé, l'option {0} doit également être passée</target>
<note />
</trans-unit>
<trans-unit id="buildExpectedSigdataFile">
<source>FSharp.Core.sigdata not found alongside FSharp.Core. File expected in {0}. Consider upgrading to a more recent version of FSharp.Core, where this file is no longer be required.</source>
<target state="translated">FSharp.Core.sigdata introuvable avec FSharp.Core. Fichier attendu dans {0}. Effectuez une mise à niveau vers une version plus récente de FSharp.Core, où ce fichier n'est plus nécessaire.</target>

Просмотреть файл

@ -5322,11 +5322,6 @@
<target state="translated">I binding DLLImport devono essere membri statici in una classe o definizioni di funzione in un modulo</target>
<note />
</trans-unit>
<trans-unit id="buildExplicitCoreLibRequiresNoFramework">
<source>When mscorlib.dll is explicitly referenced the {0} option must also be passed</source>
<target state="needs-review-translation">Quando si fa riferimento in modo esplicito a mscorlib.dll o FSharp.Core.dll è necessario passare anche l'opzione {0}</target>
<note />
</trans-unit>
<trans-unit id="buildExpectedSigdataFile">
<source>FSharp.Core.sigdata not found alongside FSharp.Core. File expected in {0}. Consider upgrading to a more recent version of FSharp.Core, where this file is no longer be required.</source>
<target state="translated">Il file FSharp.Core.sigdata non è stato trovato con FSharp.Core. Il file deve trovarsi in {0}. Provare a eseguire l'aggiornamento a una versione più recente di FSharp.Core, in cui questo file non è più obbligatorio.</target>

Просмотреть файл

@ -5322,11 +5322,6 @@
<target state="translated">DLLImport 束縛はモジュール内のクラスまたは関数定義の静的メンバーであることが必要です</target>
<note />
</trans-unit>
<trans-unit id="buildExplicitCoreLibRequiresNoFramework">
<source>When mscorlib.dll is explicitly referenced the {0} option must also be passed</source>
<target state="needs-review-translation">mscorlib.dll または FSharp.Core.dll が明示的に参照される場合は、{0} オプションも渡す必要があります</target>
<note />
</trans-unit>
<trans-unit id="buildExpectedSigdataFile">
<source>FSharp.Core.sigdata not found alongside FSharp.Core. File expected in {0}. Consider upgrading to a more recent version of FSharp.Core, where this file is no longer be required.</source>
<target state="translated">FSharp.Core と同じ場所に FSharp.Core.sigdata が見つかりません。ファイルは {0} にある必要があります。このファイルを必要としない、より新しいバージョンの FSharp.Core にアップグレードすることをご検討ください。</target>

Просмотреть файл

@ -5322,11 +5322,6 @@
<target state="translated">DLLImport 바인딩은 모듈의 클래스 또는 함수 정의에서 정적 멤버여야 합니다.</target>
<note />
</trans-unit>
<trans-unit id="buildExplicitCoreLibRequiresNoFramework">
<source>When mscorlib.dll is explicitly referenced the {0} option must also be passed</source>
<target state="needs-review-translation">mscorlib.dll 또는 FSharp.Core.dll이 명시적으로 참조될 경우 {0} 옵션도 전달해야 합니다.</target>
<note />
</trans-unit>
<trans-unit id="buildExpectedSigdataFile">
<source>FSharp.Core.sigdata not found alongside FSharp.Core. File expected in {0}. Consider upgrading to a more recent version of FSharp.Core, where this file is no longer be required.</source>
<target state="translated">FSharp.Core에서 FSharp.Core.sigdata를 찾을 수 없습니다. 파일이 {0}에 있어야 합니다. 이 파일이 더 이상 필요하지 않은 최신 버전의 FSharp.Core로의 업그레이드를 고려해 보세요.</target>

Просмотреть файл

@ -5322,11 +5322,6 @@
<target state="translated">Powiązania DLLImport muszą być statycznymi elementami członkowskimi w definicjach klas lub funkcji w module</target>
<note />
</trans-unit>
<trans-unit id="buildExplicitCoreLibRequiresNoFramework">
<source>When mscorlib.dll is explicitly referenced the {0} option must also be passed</source>
<target state="needs-review-translation">W przypadku jawnego odwołania do pliku mscorlib.dll lub pliku FSharp.Core.dll musi również zostać przekazana opcja {0}</target>
<note />
</trans-unit>
<trans-unit id="buildExpectedSigdataFile">
<source>FSharp.Core.sigdata not found alongside FSharp.Core. File expected in {0}. Consider upgrading to a more recent version of FSharp.Core, where this file is no longer be required.</source>
<target state="translated">Nie znaleziono zasobu FSharp.Core.sigdata z plikiem FSharp.Core. Plik oczekiwany w {0}. Rozważ uaktualnienie do nowszej wersji pliku FSharp.Core, w której ten plik nie jest już wymagany.</target>

Просмотреть файл

@ -5322,11 +5322,6 @@
<target state="translated">As associações DLLImport devem ser membros estáticos em uma classe ou definições de função em um módulo</target>
<note />
</trans-unit>
<trans-unit id="buildExplicitCoreLibRequiresNoFramework">
<source>When mscorlib.dll is explicitly referenced the {0} option must also be passed</source>
<target state="needs-review-translation">Enquanto mscorlib.dll ou FSharp.Core.dll é explicitamente referenciado, a opção {0} também deve ser passada</target>
<note />
</trans-unit>
<trans-unit id="buildExpectedSigdataFile">
<source>FSharp.Core.sigdata not found alongside FSharp.Core. File expected in {0}. Consider upgrading to a more recent version of FSharp.Core, where this file is no longer be required.</source>
<target state="translated">FSharp.Core.sigdata não encontrado junto com FSharp.Core. Arquivo esperado em {0}. Considere atualizar para uma versão mais recente do FSharp.Corem, na qual esse arquivo não é mais necessário.</target>

Просмотреть файл

@ -5322,11 +5322,6 @@
<target state="translated">Привязки DLLImport должны быть статическими элементами в определениях класса или функции в модуле</target>
<note />
</trans-unit>
<trans-unit id="buildExplicitCoreLibRequiresNoFramework">
<source>When mscorlib.dll is explicitly referenced the {0} option must also be passed</source>
<target state="needs-review-translation">При явной ссылке на mscorlib.dll или FSharp.Core.dll также должен передаваться параметр {0}</target>
<note />
</trans-unit>
<trans-unit id="buildExpectedSigdataFile">
<source>FSharp.Core.sigdata not found alongside FSharp.Core. File expected in {0}. Consider upgrading to a more recent version of FSharp.Core, where this file is no longer be required.</source>
<target state="translated">Ресурс FSharp.Core.sigdata не найден вместе с FSharp.Core. Файл ожидался в {0}. Рекомендуется обновление до более новой версии FSharp.Core, где этот файл не требуется.</target>

Просмотреть файл

@ -5322,11 +5322,6 @@
<target state="translated">DLLImport bağlamaları bir sınıf içinde statik üyeler veya bir modül içinde işlev tanımları olmalıdır</target>
<note />
</trans-unit>
<trans-unit id="buildExplicitCoreLibRequiresNoFramework">
<source>When mscorlib.dll is explicitly referenced the {0} option must also be passed</source>
<target state="needs-review-translation">mscorlib.dll veya FSharp.Core.dll dosyalarına açık olarak başvurulduğunda {0} seçeneği de geçirilmelidir</target>
<note />
</trans-unit>
<trans-unit id="buildExpectedSigdataFile">
<source>FSharp.Core.sigdata not found alongside FSharp.Core. File expected in {0}. Consider upgrading to a more recent version of FSharp.Core, where this file is no longer be required.</source>
<target state="translated">FSharp.Core.sigdata, FSharp.Core ile birlikte bulunamadı. Dosyanın {0} içinde olması bekleniyordu. Bu dosyayı gerektirmeyen daha yeni bir FSharp.Core sürümüne yükseltmeniz önerilir.</target>

Просмотреть файл

@ -5322,11 +5322,6 @@
<target state="translated">DLLImport 绑定必须是类中的静态成员或模块中的函数定义</target>
<note />
</trans-unit>
<trans-unit id="buildExplicitCoreLibRequiresNoFramework">
<source>When mscorlib.dll is explicitly referenced the {0} option must also be passed</source>
<target state="needs-review-translation">当显式引用 mscorlib.dll 或 FSharp.Core.dll 时,同时也必须传递 {0} 选项</target>
<note />
</trans-unit>
<trans-unit id="buildExpectedSigdataFile">
<source>FSharp.Core.sigdata not found alongside FSharp.Core. File expected in {0}. Consider upgrading to a more recent version of FSharp.Core, where this file is no longer be required.</source>
<target state="translated">未能在 FSharp.Core 旁找到 FSharp.Core.sigdata。文件应在 {0} 中。请考虑升级到更新版本的 FSharp.Core该版本不再需要此文件。</target>

Просмотреть файл

@ -5322,11 +5322,6 @@
<target state="translated">DLLImport 繫結必須是類別中的靜態成員或模組中的函式定義</target>
<note />
</trans-unit>
<trans-unit id="buildExplicitCoreLibRequiresNoFramework">
<source>When mscorlib.dll is explicitly referenced the {0} option must also be passed</source>
<target state="needs-review-translation">如果明確參考了 mscorlib.dll 或 FSharp.Core.dll就必須同時傳遞 {0} 選項</target>
<note />
</trans-unit>
<trans-unit id="buildExpectedSigdataFile">
<source>FSharp.Core.sigdata not found alongside FSharp.Core. File expected in {0}. Consider upgrading to a more recent version of FSharp.Core, where this file is no longer be required.</source>
<target state="translated">找不到與 FSharp.Core 並存的 FSharp.Core.sigdata。檔案應位於 {0}。請考慮升級至最新版的 FSharp.Core其中不再需要此檔案。</target>