时间:2008年10月的最后一天
原由:把现有的门户网站的设计改编成不含源码安装方案
第一次使用VseWSS来开发,只能边学边玩
先用empty模板,生成一个project (就叫empty吧)
用module模板,生成一个module(就叫module吧)
把sample.txt更名为test.aspx
把module.xml 改一改
<?xml version="1.0" encoding="utf-8"?>
<Elements Id="8995a627-e6cf-4320-9e75-f4ad00babea6" xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="Module" Url="Module">
<File Path="Test.aspx" Url="Test.aspx" />
</Module>
</Elements>
把manifest.xml也改一改 (用wsp view 可以看到)
<?xml version="1.0" encoding="utf-8"?>
<Solution SolutionId="038c1634-511d-40b6-bc0a-c0a15cd44f50" xmlns="http://schemas.microsoft.com/sharepoint/">
<FeatureManifests>
<FeatureManifest Location="Module\feature.xml" />
</FeatureManifests>
<Assemblies>
<Assembly Location="Empty.dll" DeploymentTarget="WebApplication" />
</Assemblies>
</Solution>
然后 build, deploy.
用IE访问http://localhost/Modele/Test.aspx
结果显示sample.txt中的内容
ok, 收工!
星期一,再来。