David Matson
4b1e4deb44
Set -pch correctly from targets when not using PCH ( #1093 )
2022-01-12 15:01:49 -08:00
David Matson
5792511e01
Document syntax to disable PCH ( #1092 )
2022-01-12 12:23:14 -08:00
Kenny Kerr
1ab11a3522
More reliable verbose path output ( #1091 )
2022-01-10 09:02:46 -08:00
Charles Milette
51ec25ce5c
Make winrt::event clearable ( #1074 )
2021-12-23 14:33:32 -08:00
TDBuild
b8dcbbfeb0
TDBuild - updating localized resource files.
2021-12-17 06:01:41 +00:00
TDBuild
74a401dd84
TDBuild - updating localized resource files.
2021-12-16 06:01:47 +00:00
Ryan Shepherd
acf7188bed
Minor updates to binaries to enable tooling scans ( #1077 )
2021-12-15 10:45:04 -08:00
TDBuild
8be3a88896
TDBuild - updating localized resource files.
2021-12-15 00:52:32 +00:00
Ryan Shepherd
a8dbc8842e
Onboard to localization build ( #1075 )
...
* TDBuild - updating localized resource files.
* Remove unused localizations
* TDBuild - updating localized resource files.
* Update TDBuild pipeline naming localized resx files correctly
Co-authored-by: TDBuild <DoNotEmailThis@dev.null.microsoft.com>
2021-12-13 11:53:52 -08:00
Charles Milette
0be01db740
Fix compilation under Clang ( #1073 )
2021-12-08 13:58:41 -08:00
Ryan Shepherd
4d5c5ae3de
Lay groundwork for localizing VSIX templates and remove Dev15 build cruft ( #1060 )
...
* Lay groundwork for localization
* Change both VSIX definitions to AnyCPU
* Remove obsolete props/targets from VSIX
* Consolidate template update logic into Extension.targets
* Convert to SDK-style project
* Add placeholder resx files
* Keep target framework out of output path to avoid pipeline churn
2021-12-02 12:04:55 -08:00
Chris Guzak
c28713d626
Remove WINRT_NO_MAKE_DETECTION from project templates ( #1067 )
2021-11-30 13:56:32 -08:00
Kenny Kerr
e1920949fd
Allow non-void static setter methods when compiling with `-opt` ( #1063 )
2021-11-19 14:37:46 -08:00
Ben Kuhn
bddd2e1303
Improved struct ordering ( #1052 )
2021-10-28 15:42:43 -07:00
Johan Laanstra
eab5d4bf88
Evaluate ExcludedFromBuild inline ( #1051 )
2021-10-28 15:41:25 -07:00
Peter Torr (MSFT)
2f1e651329
Update comments written by component_writers.h ( #1043 )
2021-10-25 10:54:16 -07:00
Ryan Shepherd
c07461f23a
Fix VSIX pipeline build breaks ( #1046 )
...
* Fix some VSIX build breaks in pipeline
* Work around untracked LICENSE file
2021-10-22 05:06:36 -07:00
Ryan Shepherd
d85ad868ba
Split VSIX into Dev16 and Dev17 ( #1045 )
2021-10-22 00:22:59 -07:00
Raymond Chen
2d9ed4e308
Avoid spurious WINRT_NATVIS redefinition warning ( #1044 )
2021-10-21 09:52:05 -07:00
Raymond Chen
4c7e2b5676
Awaiting an already-completed IAsyncXxx does not consume stack in C++20 mode ( #1040 )
2021-10-21 09:50:19 -07:00
Raymond Chen
10912006f7
Allow an object to hold a weak reference to itself in a member ( #1038 )
2021-10-11 13:48:21 -07:00
Kenny Kerr
4e6eed2fa3
Simplify use of `WINRT_NO_MODULE_LOCK` in DLLs ( #1032 )
2021-09-30 16:16:21 -07:00
Kenny Kerr
24af032f48
Support binding std::optional<T> implementation to IReference<T> parameters ( #1030 )
2021-09-30 12:53:58 -07:00
Kenny Kerr
6270dcc773
Optimize factory caching for apps and pinned DLLs ( #1031 )
2021-09-30 12:53:21 -07:00
Raymond Chen
ae411ccd74
Properly report failure to switch to target apartment ( #1026 )
2021-09-30 08:34:43 -07:00
Charles Milette
71832b634d
std::format support ( #1025 )
2021-09-22 07:50:22 -07:00
Raymond Chen
d056690a44
Improve diagnostics when trying to use classic COM without <unknwn.h> ( #1022 )
2021-09-20 10:20:06 -07:00
Charles Milette
a903a2c107
Ignore MIDL files which are excluded from the build ( #1019 )
...
* Ignore MIDL files which are excluded from the build
Without this, cppwinrt would attempt to use the output of MIDL files which where excluded from the build, resuting in mdmerge either erroring due to missing files, or using partially outdated buid output.
* Fix up other uses of @(Midl)
2021-09-16 21:44:11 -07:00
Kenny Kerr
1c07e1b7db
Avoid exception in observable IndexOf implementation ( #1017 )
2021-09-13 10:00:52 -07:00
Johan Laanstra
032effe565
Enable /await opt-out so users can manually enable /await:strict. ( #1015 )
...
* Switch to using /await:strict which is binary compatible with c++20 coroutines.
* Make legacy coroutines opt-in.
2021-09-13 09:16:22 -07:00
David Fields
3aa0339a4f
Generate test failure output on abnormal termination ( #1011 )
2021-09-07 17:09:41 -07:00
Kenny Kerr
0a0062a656
Fix test failure ( #1009 )
2021-09-01 13:03:57 -07:00
Charles Milette
f2f08f72b6
Ignore errors during manual unregistration ( #1005 )
2021-08-25 09:16:19 -07:00
Kenny Kerr
8f40198d62
Fix edge case in nested Windows namespace ( #1004 )
2021-08-25 09:16:01 -07:00
Raymond Chen
4366357db9
Some uses of `co_await` were not protected by `WINRT_IMPL_COROUTINES` ( #1002 )
2021-08-19 10:13:45 -07:00
David Fields
4ba22a67d7
Use throw rather than abort() for guid parse failures ( #992 )
...
* Use throw rather than abort() for guid parse failures
Make `winrt::guid("...")` more useful at runtime by throwing on failure instead of aborting the program.
* Remove noexcept, add tests
* Revert operator== changes, revise tests
Co-authored-by: Kenny Kerr <kekerr@microsoft.com>
2021-08-03 22:20:58 -07:00
Charles Milette
20f0962c68
Use v143 toolset on VS 2022 ( #994 )
...
* Use v143 toolset on VS 2022
Visual Studio 2022 introduces a new toolset version, so we should use it for increased standards compliance and new features
* Remove trailing whitespaces
2021-08-03 11:02:03 -07:00
Ryan Shepherd
a6124b2d02
Fix cyclic dependency error when upgrading VS 2022 ( #989 )
2021-07-26 14:12:45 -07:00
Kenny Kerr
00bc3b8f59
Harden put functions against misuse ( #986 )
2021-07-21 15:47:20 -07:00
Johan Laanstra
c978627592
Ensure the Xaml designer can find out WinMD ( #982 )
2021-07-14 09:00:56 -07:00
Johan Laanstra
74240c8cd6
Ensure we don't override XamlLanguage if it's already set. ( #979 )
...
When NuGet imports the props as part of PackageReference, it easy to end up in situations where the project file defines XamlLanguage before the C++/WinRT props are imported.
We shouldn't override if the value is already set.
2021-07-09 10:43:12 -07:00
Johan Laanstra
54c1097dac
Fix target override as it doesn't work when the target import order changes. ( #977 )
...
* Fix target override as it doesn't work when the target import order changes.
* Fix mismatch.
* Minor updates.
2021-07-08 12:26:54 -07:00
Kenny Kerr
7e730e7652
Revert "Prevent inadvertent assignment to temporary object" ( #976 )
2021-07-07 07:14:04 -07:00
Ryan Shepherd
634d627557
Update VSIX to work with Dev17 ( #968 )
...
* Update VSIX to work with Dev17
* Newline in vxismanifest
2021-07-01 10:51:56 -07:00
Raymond Chen
837ac89ca5
check_hresult returns the hresult as a convenience ( #971 )
2021-06-30 09:43:31 -07:00
Ryan Shepherd
8fb1e2147e
Ingest updated winmd library to fix include/exclude regression ( #969 )
2021-06-29 23:08:18 -07:00
Raymond Chen
933a28b223
Fix delegates with return value passed as fptr or {p,mfptr} ( #966 )
2021-06-28 07:23:49 -07:00
Raymond Chen
186f53ee42
IReference operators in level-1 header should be forward declarations ( #965 )
2021-06-24 12:42:43 -07:00
Jaiganesh Kumaran
fb3e9897ad
Add starts_with and ends_with to hstring ( #952 )
2021-06-22 08:09:42 -07:00
David Lechner
b0b9bf7436
Add IMemoryBufferByteAccess accessor ( #956 )
2021-06-21 08:43:55 -07:00