Commit Graph
12 Commits
Author SHA1 Message Date
Viktor Hofer 9b88ca1d72 Remove UAP target (dotnet/corefx#41759)
* Remove Uap target

* Remove RemoteInvokeForUap wrapper calls entirely

* Harvest S.D.SqlClient on UWP

* Disable UWP PInvoke analyzer

* Enable WindowsRuntime* tests on netcoreapp

Commit migrated from https://github.com/dotnet/corefx/commit/3b6ec2ba944fb72f921f95b99b6ebf2e7bb3dc5a
2019-10-17 15:04:39 +02:00
Jan Kotas b6882078d7 Ignore ERROR_NOT_FOUND in File.Encrypt test (dotnet/corefx#41604)
Makes the test pass when EFS (Encrypted File System) is not available.

I have also fixed the interop definition for Encrypt/DecryptFile P/Invokes while I was on it.

Fixes dotnet/corefx#39211

Commit migrated from https://github.com/dotnet/corefx/commit/8c8bf07d52389d8a2948460d4f7e0dba112c20a0
2019-10-07 16:10:21 -07:00
Viktor Hofer b661c58b1c Replace netstandard test projects with tfms
Netstandard test projects are broken by design and don't support the
Microsoft.Net.Test.SDK. Replacing the netstandard tfm with the concrete
implementation tfms.


Commit migrated from https://github.com/dotnet/corefx/commit/d29c16c99c6045ee67444a7a693dd4476861c463
2019-05-30 16:18:41 +02:00
Jan Kotas e3ac617a79 Delete TargetFrameworkMonikers.NetcoreCoreRT (dotnet/corefx#33929)
CoreRT was never meant to be a target framework

Commit migrated from https://github.com/dotnet/corefx/commit/5e932edf054fd24d28a3e65c5c1eaa5674fa0dc0
2018-12-08 10:48:52 -08:00
Stephen Toub b9556abb0f Add back null checks to File.Encrypt/Decrypt (dotnet/corefx#32580)
* Add back null checks to File.Encrypt/Decrypt

* Re-enable tests


Commit migrated from https://github.com/dotnet/corefx/commit/faaca859c04c4fbe29b9d4f900d0525d7f8385a3
2018-10-02 16:28:22 -04:00
Julius Hardt ab07413563 Disable EncryptDecrypt_Read() test on the Home editions of Windows (dotnet/corefx#32342)
* Disable System.IO.Tests.EncryptDecrypt.EncryptDecrypt_Read() on the Home editions of Windows

* Add a comment explaining why we skip the test on home editions


Commit migrated from https://github.com/dotnet/corefx/commit/4f7690ad97ea1772433fcfeafc4b0c26f0fb80a2
2018-09-23 22:32:59 +02:00
Viktor Hofer 49586efb0d Add uap test leg to CI
Disable/Enable tests for clean uap CI leg


Commit migrated from https://github.com/dotnet/corefx/commit/c54d4a20c315730cd76fb7688c15d0a85837f3ce
2018-08-23 20:16:11 +02:00
Marco Rossignoli e6707cf973 Add Win32 File.Encrypt/Decrypt() implementation (dotnet/corefx#31763)
* Add Win32 File.Encrypt/Decrypt() implementation

* address PR feedback

* address PR feedback

* address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/4451ec9d41916eccbb1dc71beae0d177815096d6
2018-08-20 17:28:41 -07:00
Viktor Hofer 6c5a27d741 Revert "Add Win32 File.Encrypt/Decrypt() implementation (dotnet/corefx#31585)" (dotnet/corefx#31725)
This reverts commit dotnet/corefx@cc9eaa79b5.

Commit migrated from https://github.com/dotnet/corefx/commit/bbda7f35fc46af191978f93434786c218cf5f12c
2018-08-12 13:37:29 -07:00
Marco Rossignoli 67d26d46e8 Add Win32 File.Encrypt/Decrypt() implementation (dotnet/corefx#31585)
* Add Win32 File.Encrypt/Decrypt() implementation

* address PR feedback

* address PR feedback

* skipt on Nano Server

* fix WinRT/UWP build


Commit migrated from https://github.com/dotnet/corefx/commit/cc9eaa79b526c2b23ee16f4e453e428e2e84a7df
2018-08-10 10:57:16 -07:00
Daniel Harvey 252cdc5e95 Bulk updates of tests for AssertExtensions (dotnet/corefx#18491)
Bulk update to AssertExtensions.Throws for AOT support. This doesn't disable Assert.Throws.

Commit migrated from https://github.com/dotnet/corefx/commit/b43b4df2e0e2182154bb0f425cb4a61bc1269828
2017-04-18 09:52:02 -07:00
Stephen Toub abc4973a51 Add missing APIs to System.IO.FileSystem
Adds:
- File.WriteAllLines(string, string[])
- File.WriteAllLines(string, string[], Encoding)
- File.Replace(string, string, string)
- File.Replace(string, string, string, bool)
- File.Encrypt(string)
- File.Decrypt(string)
- FileInfo.Encrypt()
- FileInfo.Decrypt()
- FileStream.Handle
- FileStream.Lock(long, long)
- FileStream.Unlock(long, long)

Currently throws PlatformNotSupportedException from:
- Encrypt/Decrypt on all platforms.  These can be implemented on Win32, but the APIs needed are not currently exposed as allowed in buildtools.
- Lock/Unlock on Unix and WinRT.  These can be implemented on Unix; I just didn't in this commit.


Commit migrated from https://github.com/dotnet/corefx/commit/2fbc772ea8bd83a37b9f26c1a7c928a6be2d2c0b
2016-09-12 20:32:59 -04:00