Skip to content

Commit

Permalink
Relax --noframework for mscorlib, netstandard and system.runtime (dot…
Browse files Browse the repository at this point in the history
…net#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
  • Loading branch information
KevinRansom authored Sep 24, 2019
1 parent b834b12 commit d44950e
Show file tree
Hide file tree
Showing 16 changed files with 0 additions and 73 deletions.
6 changes: 0 additions & 6 deletions src/fsharp/CompileOps.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 0 additions & 1 deletion src/fsharp/DotNetFrameworkDependencies.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion src/fsharp/FSComp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand Down
5 changes: 0 additions & 5 deletions src/fsharp/xlf/FSComp.txt.cs.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 0 additions & 5 deletions src/fsharp/xlf/FSComp.txt.de.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 0 additions & 5 deletions src/fsharp/xlf/FSComp.txt.es.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 0 additions & 5 deletions src/fsharp/xlf/FSComp.txt.fr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 0 additions & 5 deletions src/fsharp/xlf/FSComp.txt.it.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 0 additions & 5 deletions src/fsharp/xlf/FSComp.txt.ja.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 0 additions & 5 deletions src/fsharp/xlf/FSComp.txt.ko.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 0 additions & 5 deletions src/fsharp/xlf/FSComp.txt.pl.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 0 additions & 5 deletions src/fsharp/xlf/FSComp.txt.pt-BR.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 0 additions & 5 deletions src/fsharp/xlf/FSComp.txt.ru.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 0 additions & 5 deletions src/fsharp/xlf/FSComp.txt.tr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 0 additions & 5 deletions src/fsharp/xlf/FSComp.txt.zh-Hans.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
5 changes: 0 additions & 5 deletions src/fsharp/xlf/FSComp.txt.zh-Hant.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit d44950e

Please sign in to comment.