Граф коммитов

502 Коммитов

Автор SHA1 Сообщение Дата
Manodasan Wignarajah 00b42482d5
Add NuGet.config with public feed per guidance (#797) 2024-09-05 13:20:58 -07:00
Manodasan Wignarajah b77bee63b7
Delete unused docker file (#795) 2023-11-03 14:10:40 -07:00
Manodasan Wignarajah 5f62639886
Baseline and fix feed (#794) 2023-11-02 15:57:04 -07:00
Manodasan Wignarajah 79a3ad2db8
Add updated pipeline (#793) 2023-10-30 21:29:44 -07:00
microsoft-github-policy-service[bot] f23fb4b03e
Adding Microsoft SECURITY.MD (#792) 2023-06-02 13:42:26 -05:00
Kenny Kerr 82c9b04228
Update stale.yml 2023-03-13 09:50:14 -06:00
Kenny Kerr 3a95d39e1b
Update stale.yml 2023-03-08 19:36:53 -06:00
Kenny Kerr b214027b77
Update stale.yml 2023-02-28 08:46:24 -06:00
Kenny Kerr 1d28abbfa5
Update stale.yml 2023-02-28 08:34:49 -06:00
Kenny Kerr 3619122816
Update stale.yml 2023-02-28 08:26:35 -06:00
Kenny Kerr 4c086eff9f Add stale workflow 2023-02-23 11:27:10 -06:00
Scott Jones 57f4c8a3b8
Convert release to "!= debug" for custom configurations (#788)
Co-authored-by: Ben Kuhn <bjk4929@yahoo.com>
2023-01-12 14:55:46 -08:00
Ben Kuhn 88ee4897e1
User/benkuhn/urfw buildconfig (#787)
Enable configuration override for custom configurations.

Forcing merge based on verbal sign-off from @Scottj1s.
2023-01-10 23:42:05 -08:00
Scott Jones 8870402f4c
centralize PlatformToolset, and make it VS version dependent (#785) 2022-12-19 11:23:23 -08:00
Eric Detoc 952e2e6288
Handle failures in InstallHooks and fix a random COMException when P/Invoking winrtact_Initialize (#784)
* remove "PreserveSig=true" from the P/Invoke signature of winrtact_Initialize as it returns Void.

* Add error checking for the Detour calls in InstallHooks.
Dllmain now returns False in case an error occured in InstallHooks or ExtRoLoadCatalog

* Update src/UndockedRegFreeWinRT/UndockedRegFreeWinRT/dllmain.cpp

Co-authored-by: Scott Jones <scottj1s@gmail.com>

* Update src/UndockedRegFreeWinRT/UndockedRegFreeWinRT/dllmain.cpp

Co-authored-by: Scott Jones <scottj1s@gmail.com>

* Update src/UndockedRegFreeWinRT/UndockedRegFreeWinRT/dllmain.cpp

Co-authored-by: Scott Jones <scottj1s@gmail.com>

* Update src/UndockedRegFreeWinRT/UndockedRegFreeWinRT/dllmain.cpp

Co-authored-by: Scott Jones <scottj1s@gmail.com>

* Update src/UndockedRegFreeWinRT/UndockedRegFreeWinRT/dllmain.cpp

Co-authored-by: Scott Jones <scottj1s@gmail.com>

Co-authored-by: Scott Jones <scottj1s@gmail.com>
2022-12-12 11:41:35 -08:00
JohnMcPMS cfe510d0d2
Move to OS based dispenser (#780) 2022-11-17 13:44:43 -08:00
Scott Jones 8b8e7a19c2
added file missing from PR 767 (#781) 2022-11-10 14:57:06 -08:00
Oscar Calvo 512febb232
Fix a bug where the filename variable can get clobbered due to XmlReader invalidating the buffe (#767)
* Fix a bug where the filename variable can get clobbered due to XmlReader invalidating the buffer

* Undo test-only change

Co-authored-by: Jesse Collins <Jesse.Collins@microsoft.com>
Co-authored-by: Ben Kuhn <benkuhn@microsoft.com>
2022-09-27 09:39:03 -07:00
Ben Kuhn be9c9c4577
Convert ABI build from ADO UI-based build to YAML (#778)
Initial conversion from ADO pipeline builder UI, adding signing for binary in vpack
2022-08-01 09:50:36 -07:00
David Lechner a2949dd79a
README: update Python link (#772)
Co-authored-by: Ben Kuhn <bjk4929@yahoo.com>
2022-04-26 11:01:10 -07:00
Duncan Horn 1e9d11cdcb
Fix contract sort order and update code gen to compile with /Za (#774)
* Update contract sorting algorithm

* Get headers to compile with /Za
2022-04-20 14:19:44 -07:00
David Lechner e0e0fb3c96
python: bump sdk version to 18362 (#744)
This is Windows 10 1903, which gives us 2 years worth of backwards compatibility.

Fixes #727
2021-06-07 11:48:29 -07:00
Ben Kuhn b950b15d53
Benkuhn/readme update (#725)
* first attempt at update

* filling out xlang project list

* minor fixes

* Update README.md

Co-authored-by: Kenny Kerr <kekerr@microsoft.com>

Co-authored-by: Ben Kuhn <benkuhn@ntdev.microsoft.com>
Co-authored-by: Kenny Kerr <kekerr@microsoft.com>
2021-02-03 09:23:14 -08:00
Ben Kuhn 7efce99b11
Fix python version reference from native code DLLs (#724)
Adding specific versions to cmake find_package call for python to ensure that pywinrt projections use the correct native support DLL.
2021-02-02 12:53:17 -08:00
Ben Kuhn 47c3111711
Change pywinrt to build & package wheels for all supported python versions in one build operation. (#715)
Now builds packages for multiple versions of python in one pass to make it easier to keep everything up to date. Also updated to use ESRP signing instead of package ES.

#709

Co-authored-by: Ben Kuhn <benkuhn@ntdev.microsoft.com>
Co-authored-by: David Lechner <david@pybricks.com>
2020-11-25 13:39:25 -08:00
Kyaw Thant 191466bf6c
Adjust Additional Dependencies to remove windowsapp.lib so winrtact.dll can work on win8.1 (#714)
Adjust Additional Dependencies to remove windowsapp.lib so winrtact.dll can work on win8.1
2020-10-21 11:06:17 -07:00
Steve Dower 5665408e8b
Send unraisable Python exceptions to the proper handler (#695)
Co-authored-by: Ben Kuhn <bjk4929@yahoo.com>
2020-10-20 23:50:56 -07:00
David Lechner 5d8b8d280c
Implement Python guid/uuid conversion (#698)
This implements `struct converter<winrt::guid>` to provide marshaling
between xlang::guid and the standard Python uuid.UUID type.

Fixes #662
Fixes #664

Co-authored-by: Ben Kuhn <bjk4929@yahoo.com>
2020-10-20 20:12:49 -07:00
David Lechner 8d2a4d540e
Implement Nullable<T> in Python (#699)
`Nullable<T>` internally has the type of `winrt::Windows::Foundation::IReference<T>`.
This adds a special case to handle this type so that in Python, `None`
can be passed as a value in addition to the expected type.

For example:

```python
>>> from winrt.windows.devices.bluetooth import BluetoothSignalStrengthFilter
>>> f = BluetoothSignalStrengthFilter()
>>> f.out_of_range_threshold_in_d_bm is None
True
>>> f.out_of_range_threshold_in_d_bm = 8
>>> f.out_of_range_threshold_in_d_bm
8
>>> f.out_of_range_threshold_in_d_bm = None
>>> f.out_of_range_threshold_in_d_bm is None
True
```

Fixes #663
Fixes #646

Co-authored-by: Ben Kuhn <bjk4929@yahoo.com>
2020-10-20 16:58:28 -07:00
Kyaw Thant d4041dcc95
Fix a bug with upper case DLL extension and added Embedded Manifest Test in c# (#713)
Fix a bug with upper case DLL extension and added Embedded Manifest Test in c#.

The code looks at the extension of the path from the asmInfo but it only looks for ".dll" but the extension was in uppercase.
2020-10-14 15:34:17 -07:00
Kyaw Thant e8c1325ed9
Embedded Manifest (#707)
Implemented Embedded Manifests for exe and dll

To enable dll embedded manifests, I call into CreateActCtxW and QueryActCtxW and iterate through the manifests assemblies.

I've also implemented an embedded manifest tests which works exactly like the UndockedRegFreeWinRTTest.exe but the exe manifest is embedded and it has a dependentAssembly on the EmbeddedTestComponent. It looks at the manifest that is embedded in EmbeddedTestComponent.dll and activates the classes from it.

There are also structural improvements to the project.
2020-10-14 11:26:27 -07:00
Ben Kuhn f31f1a4dab
Updating build to target python 3.9 (#712)
Co-authored-by: Ben Kuhn <benkuhn@ntdev.microsoft.com>
2020-10-09 22:15:37 -07:00
Duncan Horn 09e6cef65f
extern is pointless on an inline definition (#704) 2020-10-02 10:59:18 -07:00
Kyaw Thant dc52d1ce95
Simplify Initialization Process of RegFreeWinRT on C# (#694)
Simplify Initialization Process of RegFreeWinRT on C#
2020-09-22 22:54:46 -07:00
Ben Kuhn f02b7df926
separating cross-plat and windows-related documents. (#696)
Co-authored-by: Ben Kuhn <benkuhn@ntdev.microsoft.com>
2020-09-11 11:54:42 -07:00
Kyaw Thant 43bd6bcd39
RoGetMetaDataFile to find non-windows type in exe directory (#693)
Fix RoGetMetaDataFile so that it find non windows type definition in the WinMD that is in the executable's directory.

This fixes cross apartment activations on RS5
2020-09-09 13:58:10 -07:00
Kyaw Thant 1a030d4ca8
Fix incorrect while loop algo when parsing the manifest (#692) 2020-09-02 15:45:57 -07:00
Ben Kuhn de1fbb107a
Update steps-package-projection.yml 2020-08-26 09:19:03 -07:00
Ben Kuhn aeb003679d
Update steps-build-projection.yml 2020-08-26 09:17:24 -07:00
Ben Kuhn cdbc6625ca
Update job-package-projection.yml 2020-08-26 09:14:38 -07:00
Ben Kuhn 152217e16e
Update job-build-projection.yml 2020-08-26 09:14:07 -07:00
Ben Kuhn 2fdc885e5c
Update setup.py 2020-08-25 23:53:39 -07:00
Ben Kuhn a6b772b50a
Update steps-sign-projection.yml 2020-08-24 23:43:59 -07:00
Steve Kirbach 8d1d22049b
adding midlrt nuget package (#679)
* adding initial midlrt nuget package

* updating readme

* updating license

* updating license and copyright

* ensuring that the target gathers the appropriately generated idl files

* fix typo

* fix typo

* pr feedback

* more pr feedback updates

* removing isnativelanguage

* fixing WindowsSdkToolLocation
2020-08-21 12:58:26 -07:00
Ben Kuhn 1b697d1611
cppwinrt updates for pywinrt codegen (#689)
* cppwinrt updates for pywinrt codegen

* fixing implicit casting issue

Co-authored-by: Ben Kuhn <benkuhn@ntdev.microsoft.com>
2020-08-21 09:06:26 -07:00
Ben Kuhn 573896c666
fixing include paths (#688)
Co-authored-by: Ben Kuhn <benkuhn@ntdev.microsoft.com>
2020-08-19 10:37:05 -07:00
Kyaw Thant 734461943f
Update Nuget's description to a more accurate one (#682)
Update Nuget's description to a more accurate one.
2020-07-23 12:48:00 -07:00
Kyaw Thant b18eb1e324
Update read me with more info (#680)
Update Readme for the nuget package to have instruction on how to use it.
2020-07-15 13:41:24 -07:00
Kyaw Thant 395658cf89
Fix RoResolveNamespace not looking at exe directory on RS5 as fallback. (#676)
Types were failing to resolve on RS5 because RoResolveNamespace did not look at the exe file path as fallback by default. Supplying the exe file path to windowsMetaData dir only looks for types with the Windows prefix. The fix was to also supply the exe file path to the package graph parameter.

Also fix xml parsing to look for 'name' on ActivatableClass tag instead of 'clsid'.
2020-07-14 17:23:49 -07:00
Steve Kirbach 33151063ee
Update AbiWinRT semantics to match CppWinRT (#659)
* adding abiwinrt support to match cppwinrt

* fixes to targets for passing parameters to abi.exe

* remove heapenforcement checks because they are tied to xaml generation

* updating targets per PR feedback and adding a simple readme

* removing special midl stuff

* generating all projections at once

* updating the readme

* grammer updates

* updating c++/winrt term
2020-07-14 15:33:32 -07:00