Silverlight工程无法打开的处理方法。

Silverlight工程无法打开的处理方法。,第1张

概述前几天我在一台式机上用Blend处理了一下silverlight工程,保存了。 后来打开的时候,一直报什么安全问题。我没有在意。因为我点击确定后,该项目既能调试也能运行我就没有在意。可是今天我把该工程拷贝到一个笔记本上去运行,结果打开工程失败,也没与写原因。 最后我就找到该工程的.csproj文件,打开后, <Project ToolsVersion="3.5" DefaultTargets="B

前几天我在一台式机上用Blend处理了一下silverlight工程,保存了。

后来打开的时候,一直报什么安全问题。我没有在意。因为我点击确定后,该项目既能调试也能运行我就没有在意。可是今天我把该工程拷贝到一个笔记本上去运行,结果打开工程失败,也没与写原因。

最后我就找到该工程的.csproj文件,打开后,

<Project Toolsversion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">DeBUG</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">Anycpu</Platform>
    <ProductVersion>9.0.30729</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuID>{22F71354-B52F-4B14-847A-E81F5AE2D79B}</ProjectGuID>
    <ProjectTypeGuIDs>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuIDs>
    <OutputType>library</OutputType>
    <AppDesignerFolder>PropertIEs</AppDesignerFolder>
    <Rootnamespace>###</Rootnamespace>
    <Assemblyname>###</Assemblyname>
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
    <SilverlightApplication>true</SilverlightApplication>
    <SupportedCultures>zh-Hans</SupportedCultures>
    <XapOutputs>true</XapOutputs>
    <GenerateSilverlightmanifest>true</GenerateSilverlightmanifest>
    <Xapfilename>###.xap</Xapfilename>
    <SilverlightmanifestTemplate>PropertIEs/AppManifest.xml</SilverlightmanifestTemplate>
    <SilverlightAppEntry>###.App</SilverlightAppEntry>
    <TestPagefilename>TestPage.HTML</TestPagefilename>
    <CreateTestPage>true</CreateTestPage>
    <ValIDateXaml>true</ValIDateXaml>
    <EnableOutOfbrowser>false</EnableOutOfbrowser>
    <OutOfbrowserSettingsfile>PropertIEs/OutOfbrowserSettings.xml</OutOfbrowserSettingsfile>
    <UsePlatformExtensions>false</UsePlatformExtensions>
    <ThrowErrorsInValIDation>true</ThrowErrorsInValIDation>
    <linkedServerProject>
    </linkedServerProject>
    <ExpressionBlendVersion>3.0.1938.0</ExpressionBlendVersion>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DeBUG|Anycpu' ">
    <DeBUGSymbols>true</DeBUGSymbols>
    <DeBUGType>full</DeBUGType>
    <Optimize>false</Optimize>
    <OutputPath>Bin/Release/</OutputPath>
    <defineConstants>DEBUG;TRACE;SILVERliGHT</defineConstants>
    <NoStdlib>true</NoStdlib>
    <NoConfig>true</NoConfig>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|Anycpu' ">
    <DeBUGType>pdbonly</DeBUGType>
    <Optimize>true</Optimize>
    <OutputPath>Bin/Release</OutputPath>
    <defineConstants>TRACE;SILVERliGHT</defineConstants>
    <NoStdlib>true</NoStdlib>
    <NoConfig>true</NoConfig>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="floatableWindow,Version=2.0.5.0,Culture=neutral,PublicKeyToken=dd6e2c92abf74ba1,processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>../../../../项目文档/实例/浮动窗口/floatableWindow.dll</HintPath>
    </Reference>
    <Reference Include="GIFDecoder,Version=1.0.0.0,processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>../../../../项目文档/实例/读取图片/GIFDecoderSample/GIFDecoder/Bin/DeBUG/GIFDecoder.dll</HintPath>
    </Reference>
    <Reference Include="SLVisifire.Charts,Version=2.2.9.0,PublicKeyToken=e1555b029ff71bd3,processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>D:/SuperMap/SuperMAPIServerJava6R/iClIEnt/forSilverlight/lib/SLVisifire.Charts.dll</HintPath>
    </Reference>
    <Reference Include="SuperMap.Web,Version=6.0.0.6524,PublicKeyToken=1b8ee0f6e59677a8,processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>D:/SuperMap/SuperMAPIServerJava6R/iClIEnt/forSilverlight/lib/SuperMap.Web.dll</HintPath>
    </Reference>
    <Reference Include="SuperMap.Web.Controls,processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>D:/SuperMap/SuperMAPIServerJava6R/iClIEnt/forSilverlight/lib/SuperMap.Web.Controls.dll</HintPath>
    </Reference>
    <Reference Include="SuperMap.Web.IS6,processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>D:/SuperMap/SuperMAPIServerJava6R/iClIEnt/forSilverlight/lib/SuperMap.Web.IS6.dll</HintPath>
    </Reference>
    <Reference Include="System.windows" />
    <Reference Include="mscorlib" />
    <Reference Include="system" />
    <Reference Include="System.Core" />
    <Reference Include="System.Net" />
    <Reference Include="System.windows.Controls,PublicKeyToken=31bf3856ad364e35" />
    <Reference Include="System.windows.Controls.Data,PublicKeyToken=31bf3856ad364e35" />
    <Reference Include="System.windows.Controls.Data.input,PublicKeyToken=31bf3856ad364e35,processorArchitecture=MSIL" />
    <Reference Include="System.windows.Controls.input,processorArchitecture=MSIL" />
    <Reference Include="System.windows.Controls.Navigation,processorArchitecture=MSIL" />
    <Reference Include="System.windows.Interactivity,processorArchitecture=MSIL" />
    <Reference Include="System.Xml" />
    <Reference Include="System.windows.browser" />
    <Reference Include="System.Xml.linq,processorArchitecture=MSIL" />
  </ItemGroup>
  <ItemGroup>
    <ApplicationDeFinition Include="App.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:MarkupCompilePass1</Generator>
    </ApplicationDeFinition>
    <Page Include="Assets/Style1.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:MarkupCompilePass1</Generator>
    </Page>
    <Page Include="Assets/Style2.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:MarkupCompilePass1</Generator>
    </Page>
    <Page Include="Assets/Styles.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:MarkupCompilePass1</Generator>
    </Page>
    <Page Include="CityMoniter.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:MarkupCompilePass1</Generator>
    </Page>
    <Page Include="MainPage.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:MarkupCompilePass1</Generator>
    </Page>
    <Page Include="Test.xaml">
      <Generator>MSBuild:MarkupCompilePass1</Generator>
      <SubType>Designer</SubType>
    </Page>
    <Page Include="tooltipExpand.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:MarkupCompilePass1</Generator>
    </Page>
    <Page Include="WelcomePage.xaml">
      <Generator>MSBuild:MarkupCompilePass1</Generator>
      <SubType>Designer</SubType>
    </Page>
  </ItemGroup>
  <ItemGroup>
    <None Include="PropertIEs/AppManifest.xml" />
  </ItemGroup>
  <ItemGroup>
    <Resource Include="images/Station.png" />
  </ItemGroup>
  <ItemGroup>
    <Resource Include="images/xuanfu002_03.png" />
    <Resource Include="images/xuanfu002_05.png" />
  </ItemGroup>
    <import Project="$(MSBuildExtensionsPath32)/Microsoft/Silverlight/v3.0/Microsoft.Silverlight.CSharp.targets" />
  <!-- To modify your build process,add your task insIDe one of the targets below and uncomment it.
       Other similar extension points exist,see Microsoft.Common.targets.
  <Target name="BeforeBuild">
  </Target>
  <Target name="AfterBuild">
  </Target>
  -->
  <ProjectExtensions>
    <VisualStudio>
      <FlavorPropertIEs GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
        <SilverlightProjectPropertIEs />
      </FlavorPropertIEs>
    </VisualStudio>
  </ProjectExtensions>
  <import Project="$(MSBuildExtensionsPath)/Microsoft/Expression/Blend/3.0/Silverlight/Microsoft.Expression.Blend.Silverlight.targets" />
</Project>

 

我经过仔细检查,发现上面标红色的这句话有问题,因为我的笔记本机器上没有Blend,所以就报错了。我把它删掉后重新打开工程,就没有可以了。

希望看到我日志的朋友,如果你的工程也是和我类似,因为在别的环境中用过,而无法打开工程。就打开该文件找到相应的import语句,把她删掉(即删掉有问题的语句)。

总结

以上是内存溢出为你收集整理的Silverlight工程无法打开的处理方法。全部内容,希望文章能够帮你解决Silverlight工程无法打开的处理方法。所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1076424.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存