Visual Studio 2015 Windows10项目中的Ctrl + D根本不起作用..它在Notepad ++中工作.我试图重启我的机器,关闭Visual Studio但没有任何作用.
我有Windows 10 Threshold 2和Visual Studio 2015 Version 14.0.23107.0
PS:昨天工作正常......
EDIT1:
这个问题主要是因为Visual Studio IDE告诉我它无法找到资源,但是当我构建应用程序时我没有任何问题.
在我的Visual Studio中我有这个:

以下是我的通用应用程序架构示例如下:
Example.windowsPhone
->MainPage.xaml
Run Code Online (Sandbox Code Playgroud)
Example.Share
-> Style.xaml
-> App.Xaml has Style.xaml referenced
Run Code Online (Sandbox Code Playgroud)
事件我在我的样式页面中引用了DmBlueBrush,如下所示:
<SolidColorBrush x:Key="DmBlueBrush" Color="{StaticResource DmBlue}" />
Run Code Online (Sandbox Code Playgroud)
在Visual Studio中,它会告诉我它无法找到它,但是当我构建应用程序时,它将找到此资源.我没有正确引用某些东西让我的IDE工作吗?
我使用的是Visual Studio 2013专业版12.0.31101.00 Update 4.
编辑1:
在共享i中的App.xaml中:
<Application
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Theme/Styles.xaml"/>
<ResourceDictionary Source="Theme/Other.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
Run Code Online (Sandbox Code Playgroud) 我尝试从Visual Studio 2015进行提交时收到错误:
发生错误.详细消息:无法打开'C:/ABC/DEFG-windows-universal/AAAA.Win10.opensdf':进程无法访问该文件,因为它正由另一个进程使用.
我试图重新启动,并删除该文件,但我有同样的问题.我是否需要使用命令行来提交更改?(我正在推动Master,我是唯一一个在这个应用程序上工作的人)
我正在开发一个Windows Phone 8,XAML/C#应用程序,当我将我的播放器框架从1.8.2.2更新到2.0.0.0并且我无法再编译时,我得到以下错误,标签不再退出.
在我的ResourceDictionary中,它保存了播放器框架的XAML样式代码,这种样式曾用于1.8.2.2但不适用于2.0.0.0
<Style TargetType="playerFramework:PlayPauseButton" x:Name="DmPlayPauseButtonStyle" BasedOn="{StaticResource DmMediaPlayerButtonStyle}">
<Setter Property="SelectedContent" Value="?"/>
<Setter Property="UnselectedContent" Value="?"/>
<Setter Property="FontSize" Value="36"/>
<Setter Property="AutomationProperties.AutomationId" Value="PlayPauseButton"/>
</Style>
Run Code Online (Sandbox Code Playgroud)
它告诉我:XML名称空间'clr-namespace中不存在标签'PlayPauseButton':Microsoft.PlayerFramework; assembly = Microsoft.PlayerFramework'.
有没有其他人有这个问题?
编辑(我安装了playerframework的V2.0.0.0):
所以我不得不使用混合重新开发样式.棘手的部分是,最初混合没有识别出玩家的风格,因此不允许我轻松设计玩家.
为了克服这个问题,我采用了整个播放器的风格(在这里找到:http://playerframework.codeplex.com/SourceControl/latest#Phone.SL/themes/generic.xaml)我把风格链接到我的播放器然后混合了能够协助我设计播放器.
我希望这可以帮助你们!
PS:1.8.2.2和2.0.0.0中的样式是100%不同的,所以你无法从一个到另一个重用完全相同的代码设计.
EDIT2:这是MSDN文章,帮助我使用混合http://msdn.microsoft.com/en-us/library/jj171012.aspx 它获得了我需要学习如何使用混合的所有信息
对于我们新的Windows 10应用程序(C#+ XAML),我们使用新的https://github.com/Microsoft/winsdkfb/登录,但是因为我们已经迁移到此登录,所以我没有运气登录facebook.
我们正在使用FBResult result = await sess.LoginAsync(permissions);并且我一直收到此错误:"未登录:您尚未登录.请登录并重试."
我的代码是他们在github上做的样本的复制和粘贴:我检查了我的SID和FacebookAppId,它们在应用程序和Facebook网站上是相同的.
public async Task<string> LogIntoFacebook()
{
//getting application Id
string SID = WebAuthenticationBroker.GetCurrentApplicationCallbackUri().ToString();
//// Get active session
FBSession sess = FBSession.ActiveSession;
sess.FBAppId = FacebookAppId;
sess.WinAppId = SID;
//setting Permissions
FBPermissions permissions = new FBPermissions(PermissionList);
try
{
// Login to Facebook
FBResult result = await sess.LoginAsync(permissions);
if (result.Succeeded)
{
// Login successful
return sess.AccessTokenData.AccessToken;
}
else
{
// Login failed
return null;
}
}
catch (InvalidOperationException ex)
{
SimpleIoc.Default.GetInstance<IErrorService>().ReportErrorInternalOnly(ex); …Run Code Online (Sandbox Code Playgroud)