Commit Graph
1913 Commits
Author SHA1 Message Date
David Cantú 54fb5973a0 /p:Configuration must use "Release" instead of "release" (#40816)
I am not very familiar with Unix so I was not aware why I was having below error:
```
/home/jozky/runtime/.dotnet/sdk/5.0.100-preview.8.20362.3/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(379,5): error NETSDK1112: The runtime pack for Microsoft.NETCore.App.Runtime.browser-wasm was not downloaded. Try running a NuGet restore with the RuntimeIdentifier 'browser-wasm'. [/home/jozky/runtime/src/libraries/System.IO.FileSystem/tests/System.IO.FileSystem.Tests.csproj]
```

I tried running `dotnet restore --runtime browser-wasm` as suggested by the error but that didn't help.
The correct thing to do was to pass `Release` (with upper case R) to `Configuration` parameter.

cc @safern
2020-08-13 22:19:23 -07:00
Alexander KöplingerandSteve Pfister c6eac1f2d5 Cleanup old corefx/coreclr GitHub issue links (#40286)
Replace them with the current URL after the redirect.

Similar to https://github.com/dotnet/runtime/pull/2063.

Co-authored-by: Steve Pfister <[email protected]>
2020-08-13 23:13:51 +02:00
Karel Zikmund 6fb6750c56 Add link to @msftbot configuration for admins (#40789)
Add link to configuration of msftbot notifications for easier access for admins.
2020-08-13 10:51:45 -07:00
Mike McLaughlin 96d34c2f2a Fix some createdump issues (#40687)
Fix some createdump issues

Fix still generating dump with COMPlus_DbgEnableMiniDump=0 on Windows

Start adding coredump pattern to dump names.  Supported format characters:

  %%  A single % character.
  %d  PID of dumped process (for backwards createdump compatibility).
  %p  PID of dumped process.
  %P  PID of dumped process.
  %e  The process executable filename.
  %E  The process executable filename.
  %h  Hostname return by gethostname().
  %t  Time of dump, expressed as seconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC).
2020-08-11 22:23:18 -07:00
David Wrighton db2c30f325 Fix virtual slot indices in VSD botr example (#40174) 2020-08-11 13:44:20 -07:00
Austin Wise 8e85874b8e Update using-dotnet-cli.md (#40580)
Fixes "error NU1102: Unable to find package Microsoft.WindowsDesktop.App.Runtime.win-x64 with version (= 5.0.0-dev)"
2020-08-10 17:55:00 -05:00
Carol Eidt 64d238d766 Update LSRA Doc (#39492)
* Update LSRA Doc
2020-08-10 10:23:11 -07:00
Omair Majid 1ec6939fac Support extra compiler flags during building (#39191)
Many Linux distributions like to use an extra set of compiler flags (via
`CFLAGS`, `CXXFLAGS` and `LDFLAGS`) to produce builds that are hardened
against vulnerabilities and exploits. The flags sometimes also enable
extra warnings to inform packagers about potential memory issues.

This pach adds support for that to dotnet/runtime.

The obvious method to make this work is to just export the `CFLAGS`,
`CXXFLAGS`, and `LDFLAGS` directly. This, however, enables those flags
during configure-time (aka `cmake` without `--build` too). That means
several cmake configure tests get executed with unexpected compiler
flags. These configure tests can then report incorrect results.

For example, https://bugzilla.redhat.com/show_bug.cgi?id=1712158
demonstrates an issue where the check for `strerror_r` in the runtime
comes to the wrong conclusion because `-Wall` is enabled and a variable
is unused.

A slightly longer fix is to support another set of environment
variables, and use them to set `CFLAGS`, `CXXFLAGS`, `LDFLAGS`, but only
for the invocation of `cmake --build`/`make`.

See #35727 for the complete details.

Fixes #35727
2020-08-10 15:43:39 +02:00
Key Kim 4ec3a25cfa Fix typo in docs/workflow/building/libraries (#40600)
build command does not exist, it should be build.cmd
2020-08-09 20:40:09 -07:00
Key Kim 4a58c28b80 Update linux-requirements.md (#40576)
append -y option and add ``` around command code
2020-08-08 18:56:21 -07:00
Austin Wiseanddanmosemsft 82ba676b70 Update using-dotnet-cli.md (#40504)
* Update using-dotnet-cli.md

Update the First Run section for .NET 5.

* more renames

* typo

Co-authored-by: danmosemsft <[email protected]>
2020-08-07 16:50:22 -07:00
Stephen Toub e7204f5d6f Use T? for unconstrained nullable types (#40197)
* Temporarily upgrade compiler version for T? support

* Use T? for unconstrained nullable types
2020-08-07 11:25:42 -04:00
Oleksandr Tymoshenko 370aba46e7 Fix Docker cross-build command (#40433) 2020-08-05 21:58:39 -07:00
Bruno Garcia 26ae386831 fix typo: fuitful -> fruitful (#40333) 2020-08-04 12:44:28 -07:00
Marek Safar 28ffb418cd Update area-owners.md (#40200) 2020-07-31 16:39:53 -07:00
Viktor Hofer b7f809d7e3 Update docs for packaging and other nits (#40134)
* Update docs for packaging and other nits
2020-07-30 15:29:30 +02:00
Anton Firszov 3edfaadbe7 Minor fix in library build instruction (#40109) 2020-07-30 09:42:08 +02:00
Mike McLaughlin 9dc8384cf5 Add env var to control createdump on MacOS (#39982)
Add env var to control createdump on MacOS

The COMPlus_DbgEnableElfDumpOnMacOS needs to be set to 1 along with all the other standard createdump env vars for dumps to be enabled on MacOS.

This is because ELF coredumps are generated on MacOS and we want customers to be very explicit and aware of what the are getting.

Change test harness to use the new env var

Createdump documentation update
2020-07-29 13:56:45 -07:00
Dan Moseley 87f0165599 Update visualstudio.md (#40047) 2020-07-28 14:33:36 -07:00
Josh Schreuder b19d7980c6 Mark Assembly.CodeBase / Assembly.EscapedCodeBase as obsolete (#31127) (#39261) 2020-07-26 11:38:15 -07:00
Viktor Hofer f6aca9ee46 Post #35606 cleanup (#39891)
* Post #35606 cleanup
2020-07-24 18:02:32 +02:00
Viktor Hofer 809a06f451 Remove depprojs in favor of PackageReferences (#35606)
- Remove depprojs which currently binplace external references into the RefPath folders in favor of PackageReference and PackageDownload items.
- Build all configurations by default when building an individual project (either on the CLI or inside VS) same as with the official SDK. This enables .NETFramework Test Explorer support.
- Centrally define libraries that compose the shared framework instead of in each Directory.Build.props file to be able to build the targeting pack first and consume it in the OOB libraries.
- Use ProjectReferences to reference OOB projects. Compile against the reference assembly but use the implementation assembly app-local during runtime.
- Remove OOBs from the testhost and remove the testhost folder for .NETFramework as it isn't required anymore.
- Only binplace for $(NetCoreAppCurrent) to compose a) the targeting pack, b) the runtime pack, c) the testhost, d) a full closure for the shims.
- Use Targeting Packs for OOB projects (with their implicit assembly references) but still explicitly define granular references for .NETCoreApp configurations (DisableImplicitAssemblyReferences switch). Use the implicit targeting pack references in some Microsoft.Extensions.* cases.
- Remove placeholder configurations as they aren't needed anymore with explicit P2Ps vs Targeting Pack references.
- Remove implicit assembly references (ie for .NETFramework, mscorlib)
- Remove AssemblySearchPath hacks that were introduced with b7c4cb7 as the targeting pack is now used by default.
- Reduce unnecessary .NETFramework configurations that were added to run tests in favor of the already existing ref&src configurations.
- Stop hardcoding the paths for wasm assemblies and use the returned TargetPath of the ProjectReferences.
- Addressed formatting (ItemGroups, References at the bottom of the project file, ordering of references, use LibrariesProjectRoot instead of a relative path, unnecessary AssemblyName and RootNamespace properties which are identical to the project name, ordering of tfms)
- Revert "fix clean (#33758)"
2020-07-23 17:20:26 +02:00
Alexander KöplingerandDan Moseley 9e846df906 Add note about the tagging bot to area-owners.md (#39750)
Follow-up to https://github.com/dotnet/runtime/pull/39659

Co-authored-by: Dan Moseley <[email protected]>
2020-07-21 20:05:43 -07:00
Eric Erhardt 632cdcab09 Trim more Http DiagnosticsHandler code (#39525)
Since the DiagnosticsHandler still gets instantiated in the HttpClientHandler, none of its overriden methods are getting trimmed. This leads to System.Diagnostics.DiagnosticListener still being preserved in a linked application.

The fix is to split DiagnosticsHandler.IsEnabled() into two methods:

* IsGloballyEnabled() - checks the AppContext switch, and is replaced by the linker by a feature swtich.
* IsEnabled() - which checks IsGloballyEnabled() and if there is an Activity or listener available.

This allows all but the IsEnabled and IsGloballyEnabled methods to get trimmed on DiagnosticsHandler.

Contributes to #38765
2020-07-21 08:59:52 -05:00
Ryan Lucia 6bb606099c Add CoffeeFlux to area-VM-meta-mono (#39659)
This ensures I see notifications about new issues
2020-07-20 17:41:30 -07:00
Jeff Handley 329f0dbfa3 Mark Obsoletions for .NET 5 (#39269)
* Mark new obsoletions for .NET 5; update existing obsoletions

* Exclude DirectoryServicesPermission/DirectoryServicesPermissionAttribute from obsoletions for now

* No need to restore SYSLIB0003 at end of Forwards files

* Use a common Obsoletions.cs file for all SYSLIB obsoletions

* Resurrect CER code behind #ifdef in EventSource

* Mark GlobalAssemblyCache overrides as Obsolete

* Suppress Thread.Abort() error in ImageAnimator.Unix.cs

* Unconditionally mark RoAssembly.GlobalAssemblyCache as obsolete

* Rename MSLIB0001 to SYSLIB0001 in ref assembly

* Suppress obsoletion warnings in tests

* Adopt a uniform #ifdef for NET50_OBSOLETIONS

* Fix BinaryFormatter obsoletion message after the rebase

* Use SYSTEM_PRIVATE_CORELIB constant instead of NETCOREAPP

* Remove the code comment on the ifdef

* Apply feedback related to CER obsoletions

* Apply feedback related to CAS

* Update ref assembly to reflect SecurityManager obsoletion

* Fix regression in System.IO.Pipes.NamedPipeServerStream.Windows.RunAsClient
2020-07-17 17:09:29 -07:00
Levi Broderick 0554117cd7 Introduce BinaryFormatter enablement switch; disable on wasm (#38963)
Applications are given the option of disabling BinaryFormatter.Serialize and BinaryFormatter.Deserialize, meaning they'll throw NotSupportedException if anybody tries calling them. WASM projects always disable these APIs via a hardcoded mechanism; there is no re-enablement mechanism for those projects.

This commit only introduces the switch. It does not disable it in any project types by default. (Exception: wasm, as mentioned above.) The related PR https://github.com/dotnet/sdk/pull/12434 causes aspnet 5.0+ applications to disable BinaryFormatter functionality by default, but apps can re-enable if needed.
2020-07-15 22:26:32 -07:00
Levi Broderick 324c6c7f12 Obsolete BinaryFormatter.Serialize and BinaryFormatter.Deserialize (#39324) 2020-07-14 23:32:07 -07:00
Marek Safar 48cd478981 Add documentation about libraries features switches (#39200)
* Add documentation about libraries features switches

* Review feedback

* Casing tweaks
2020-07-13 15:58:49 -05:00
Stephen Toub 0d531a76e6 Update deep-dive-blog-posts.md 2020-07-13 07:13:32 -04:00
Jarret Shook 42453bec74 Cleanup references to centos 6 (#39006)
* Remove Dockerfile

* Remove references to dockerfiles in runtime. These exist in dotnet-buildtools-prereqs.
2020-07-09 18:34:06 -07:00
Stephen Toub 117c9d6e85 Fix a few more license headers (#38973)
* Fix a few more license headers

I missed a few directories outside of src.

* Update Directory.Build.props
2020-07-09 11:32:01 -04:00
Stephen Toub dd0407bcfe Update windows-instructions.md 2020-07-09 09:10:36 -04:00
MSDN.WhiteKnight b520e81cf1 Fix TOC in CI Health and investigation (#38914) 2020-07-08 19:37:25 -04:00
Santiago Fernandez Madero 792fd1df18 Add examples of System.Private.CoreLib iterative workflow (#38885)
* Add examples of System.Private.CoreLib iterative workflow

* Update build.sh

* PR Feedback
2020-07-07 13:19:37 -07:00
Dan Moseley e6d89d497a remove area-sdk from area owners list (#38836)
As per discussion with @jeffschwMSFT @marcpopMSFT such issues should be in https://github.com/dotnet/sdk. All active issues already moved, label deleted.
2020-07-06 17:52:11 -07:00
Tom McDonald dcef69f9a1 Update area-owners.md (#38821)
Update UWP ownership
2020-07-06 12:48:38 -07:00
Ivan Diaz Sanchez 8b67e34eb7 Added doc with instructions to run ASP.NET Benchmarks with crossgen2 (#38695)
* Added doc with instructions on running basic ASP.NET Benchmarks with crossgen2.

* Shortened clr+libs command in Asp.Net Benchmarks doc.
2020-07-02 16:05:39 -07:00
Eirik Tsarpalis b82f8f0046 Tidy up ARM tools installation instructions (#38676) 2020-07-01 10:07:33 -07:00
Aleksey Kliger (λgeek) 2bfc063880 [docs] Fix wasm testing example directories (#38624)
And use a testsuite that passes for the example
2020-07-01 12:04:16 -04:00
Levi Broderick 74cfc0f25c Obsolete Encoding.UTF7 property and UTF7Encoding ctors (#37535)
- Disallow Encoding.GetEncoding("utf-7", ...) from returning an Encoding instance
- Minor code cleanup by removing unused ifdefs
- A compat switch is available to re-enable Encoding.GetEncoding("utf-7", ...)
2020-06-30 13:10:48 -07:00
xtqqczze 4fdf9ff881 Markdown: Close anchor tags correctly (#38619) 2020-06-30 10:37:30 -07:00
xtqqczze c8b310665e Markdown: remove unused definitions (#38618)
* Update glossary.md

Remove unused markdown definitions introduced in https://github.com/dotnet/corefx/pull/38103

* Update source-generator-pinvokes.md

Remove unused markdown definitions introduced in https://github.com/dotnet/runtime/pull/33742
2020-06-30 11:36:34 -04:00
Stephen Toub 3c9fcce29d Disable P/Invoke analyzer (#38550) 2020-06-29 18:06:21 -04:00
Andy Gocke 01267990a4 Update lead specification for AppModel items (#38532) 2020-06-29 14:01:39 -07:00
xtqqczze 384153f0d9 Update windows requirements.md (#38546)
* Remove VS 16.6 Preview 2 requirement

* Clarify wording on Visual Studio community edition
2020-06-29 07:36:28 -07:00
SingleAccretionandDan Moseley 125dfe7ab4 Imrovements to api-review-process.md (#38378)
* Update api-review-process.md

* Update docs/project/api-review-process.md

* more

Co-authored-by: Dan Moseley <[email protected]>
2020-06-25 12:31:53 -07:00
Stephen Toub 3c278a3862 Update nullability.md 2020-06-25 11:21:14 -04:00
Stephen Toub 802103929a Update nullability.md 2020-06-25 10:57:12 -04:00
Adam Sitnik 8fd53646fc update the link to point to 3rd edition of "Framework Design Guidelines" book (#38333) 2020-06-24 10:15:56 -04:00