Open xperiandri opened 12 years ago
Confirmed. I don't have a Windows 8 test setup running right now, but I'Il look into it and try to find a solution.
Please copy the contents of this file to your current tt file and verify if it works correctly for you. Thanks.
No, it doesn't What you need is to check if it is Windows Store project and swap GetProperties() with GetRuntimeProperties()
Because in .NET 4.5 project for WPF you default version will still work. This change is necessary only for .NET for Windows Store applications profile
I have modified the file. Please copy the contents to your current tt file and verify if this only does correctly work for you.
Thanks.
No, it doesn't. Because you have to check not for .NET 4.5 because there is no such property in windows store application project
It is a property group of my windows store project
I think the key property in our case is
And you needn't to invoke .GetTypeInfo().GetRuntimeProperties() Just .GetRuntimeProperties() is enough
I assumed that checking for .NET 4.5 would be sufficient, but apparently not. I have no way of testing this, so I'm depending on you to for the test results. I have updated the file, please check if it is correct.
The error is here public _NavigationPageDestination WithQuery(object anonymousQueryStringSpecifier) { return WithQuery( anonymousQueryStringSpecifier.GetType() .GetProperties() .ToDictionary(p => p.Name, p => p.GetValue(anonymousQueryStringSpecifier, null))); }
Because of some changes in Reflection in .NET for WinRT
Now it looks something like anonymousQueryStringSpecifier.GetType().GetRuntimeProperties()
http://msdn.microsoft.com/en-us/library/windows/apps/br230302%28v=VS.85%29.aspx#reflection http://msdn.microsoft.com/en-us/library/windows/apps/hh535795(v=vs.85).aspx